In calculation thread create my custom event:
Qt Code:
DataEvent* ce = new DataEvent( 13 );To copy to clipboard, switch view to plain text mode
When and where i'am must
?
In calculation thread create my custom event:
Qt Code:
DataEvent* ce = new DataEvent( 13 );To copy to clipboard, switch view to plain text mode
When and where i'am must
?
Nowhere. It's explained in QApplication::postEvent() doc:
The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted.
J-P Nurmi
Bookmarks