Hi
I'm trying to connect a button that is inside a widget(myCentralWidget). This widget is set as the QMainWindow central widget.
This is an example:
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3.  
  4. MainWindow::MainWindow(QWidget *parent) :
  5. QMainWindow(parent),
  6. ui(new Ui::MainWindow)
  7. {
  8. ui->setupUi(this);
  9. widget = new myCentralWidget(this);
  10. setCentralWidget(widget);
  11. // ...
  12. }
To copy to clipboard, switch view to plain text mode 

All classes are created using Qt Designer Form class from Qt Creator: MainWindow and myCentralWidget.
How do i connect a button that is inside the ui of the myCentralWidget to make something happen in the qmainwindow?
Thanks