I have an application which not implimented with QT.
But I only want a small part which uses the Qwidget to make some GUIs.
I find when I created the first QWidget and closed it, the whole application exits.
It is possible that Qt treats the first QWidget as a mainwindow for the application. After closing the main window, the application should be also closed.
Is there any idea to prevent this issue?
__________________
been solved
QWidget::setAttribute(Qt::WA_QuitOnClose, false)
Bookmarks