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) (Im just leaving the office for a few days; Ill post a detailed analysis when I get back) _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde