I would like to specify a slot from within another class to execute on button click, how does one do this?
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QObject::connect(ui->Open, SIGNAL(clicked()),
this,SLOT(Slotindiffrentclass);
}
MainWindow::~MainWindow()
{
delete ui;
}
Thanks.