I've created 3 separate widgets(3different classes), I would like to add them into my QMainwindow in the 3 frames that I've created using the Qt designer. I cant seem to get it to work here is my main file hopefully someone could tell me whats wrong with it.
the 3 different classes are secret, decode & pick.
Thank you
int main(int argc, char *argv[])
{
Ui::MainWindow mainwindow;
mainwindow.setupUi(MyAppWindow);
mainwindow.
secretFrame->secret
(QWidget *parent
);
mainwindow.
boardFrame->decode
(QWidget *parent
);
mainwindow.
pickerFrame->pick
(QWidget *parent
);
MyAppWindow->show();
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMainWindow *MyAppWindow = new QMainWindow;
Ui::MainWindow mainwindow;
mainwindow.setupUi(MyAppWindow);
mainwindow.secretFrame->secret(QWidget *parent);
mainwindow.boardFrame->decode(QWidget *parent);
mainwindow.pickerFrame->pick(QWidget *parent);
MyAppWindow->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks