I need to implement Qt widgets in plugin. So using widgets requires Qt GUI thread. So the problem is I can't put my widget to GUI thread without creating QApplication
In addition, I get it in debug mode: in qthread's run() I create local instance of QApplication and destroy it after thread working end. But in release i have messages in output:
QObject::startTimer: timers cannot be started from another thread
QObject::killTimer: timers cannot be stopped from another thread
QObject::startTimer: timers cannot be started from another thread
QObject::killTimer: timers cannot be stopped from another thread
To copy to clipboard, switch view to plain text mode
and after closing the thread application exits itself 
The thread 'Win32 Thread' (0x9d4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xc8c) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x778) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xc78) has exited with code 1 (0x1).
The program '[2740] deposits_repayment.exe: Native' has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x9d4) has exited with code 0 (0x0).
QWidget: Must construct a QApplication before a QPaintDevice
The thread 'Win32 Thread' (0xc8c) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x778) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xc78) has exited with code 1 (0x1).
The program '[2740] deposits_repayment.exe: Native' has exited with code 1 (0x1).
To copy to clipboard, switch view to plain text mode
Bookmarks