Closing threads, child QDialog

David Baron d_baron at 012.net.il
Fri Dec 12 11:17:11 CET 2008


There are two problems when closing my applet .

1. The ioctl TIOCWAIT thread will not terminate. This may cause plasma not to 
close correctly (stuck in gray screen until control/alt/backspace). When 
closing in the viewer, get message: QThread: Destroyed while thread is still 
running

2. If the applet's dialog box is displayed on close from the viewer (may or 
may not be a problem when plasma itself closes), the applet will not terminate 
and the dialog remains visible till a MANUALLY close it. Setting 
deleteOnClose, calling close, etc., has no effect.

These operations are being attempted in the destructor. I could try connecting 
the QObject:::destroy( this) signal but this might also be too late.

Ideas?


More information about the Plasma-devel mailing list