Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Open Mainwindow from a Dialog
-
I want to accept decryption key from a Dialog which opens before launching Mainwindow. I want to know how to open a dialog before a Mainwindow opens. So that i will accept key from dialog and pass it to mainwindow variable. Please suggest.
-
@chandradeo Simply use QDialog::exec before you create and show main window:
int main() { QDialog dialog(); dialog.exec(); MyMainWindow w; w.show(); }