Yes, there is a way.
All widgets must be created after the QApplication instance.
This should do it.Qt Code:
#include <QPushButton> ... This is where you create the application ... btn.show(); ... This is the part where you call exec.To copy to clipboard, switch view to plain text mode
Regards
Bookmarks