Re: QApplication.clipboard() segfault on GNU/Linux

Hugo Slepicka <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CAD4LfZBK_yMnVmhUcuShA-=gV_rjBrdRxAPDRKpqFMV-1TOAfQ@mail.gmail.com>
This is what worked for me for all OSs:


clipboard = QApplication.clipboard()

clipboard.setText(copy_text)

event = QEvent(QEvent.Clipboard)

QApplication.instance().sendEvent(clipboard, event)



On Tue, Jul 23, 2019 at 9:08 AM Tiger-222 <[email protected]> wrote:

> FTR I have the same error on macOS.
>
>
>
> -----
> Mickaël Schoentgen.
> [FR] Personal blog: http://www.tiger-222.fr
> --
> Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html
> _______________________________________________
> PyQt mailing list    [email protected]
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-- 
Hugo Slepicka
*[email protected] <[email protected]>*
*+1 631 855 5717*

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.