[PyKDE] Re: Qt3 Clipboard Problem

Doug Bell dougb at bellz.org
Wed Sep 13 02:54:18 BST 2006


Toby Dickenson wrote:
> Doug Bell wrote:
> 
> > Hi,
> > 
> > My application uses QClipboard's setText function (not in selection
> > mode) for copied text.  It works fine while the app is running, but the
> > clipboard is always empty after exiting the application.  This occurs on
> > both Linux (PyQt 3.16 and Qt 3.3.6) and Windows (Qt 2.3).
> > 
> > Any ideas?  Is some sort of inappropriate garbage collection going on?
> 
> That bug has been in Qt for a few years now, but I never had a reply from
> trolltech support on that one :-(. My workaround, just before shutting down
> my application:
> 
>     def _flush_clipboard(self):
>         event = QCustomEvent(QEvent.Clipboard)
>         QApplication.sendEvent(QApplication.clipboard(),event)

The workaround didn't work for me (no effect).  Is something missing?

> (Im just leaving the office for a few days; Ill post a detailed analysis
> when I get back)

Thanks.

Doug.




More information about the PyQt mailing list