[SOLVED] showing the dialog in a different way
-
I am trying to load up the dialog in a different way so that the mainwindow does not continue to read the next line in code until the dialog is closed. is this possible? below is the code that i think will work but i am getting an error... expected primary-expression before '*' token
the loginBox is the name to my dialog.
@ui->stackedWidget->setCurrentWidget(loginBox);@ -
i am not declaring the loginbox in the header. only at the mainwindow.cpp file.
@MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
login = new loginBox(this);login->setModal(true);
login->show();
ui->stackedWidget->setCurrentWidget(loginBox);@