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

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication app(argc, argv);
  4. QMainWindow *MyAppWindow = new QMainWindow;
  5. Ui::MainWindow mainwindow;
  6. mainwindow.setupUi(MyAppWindow);
  7.  
  8. mainwindow.secretFrame->secret(QWidget *parent);
  9. mainwindow.boardFrame->decode(QWidget *parent);
  10. mainwindow.pickerFrame->pick(QWidget *parent);
  11.  
  12. MyAppWindow->show();
  13. return app.exec();
  14. }
To copy to clipboard, switch view to plain text mode