Header File
class QFrame;
class QPushButton;
class QLineEdit;
class QLabel;
class livecontroller;
class liveview : public QWidget
{
Q_OBJECT
public:
explicit liveview(QWidget *parent = 0);
QString getUsername();
QString getPassword();
void setController_live(livecontroller* c);
QFrame *frame_3;
public slots:
void button_1x1_clicked();
void button_2x2_clicked();
.cpp file
/* Constructor code */
connect(pushButton_1x1, SIGNAL(clicked()), this, SLOT(button_1x1_clicked()));
connect(pushButton_2x2, SIGNAL(clicked()), this, SLOT(button_2x2_clicked()));
centralwidget->setLayout(horizontalLayout);
live_window->setCentralWidget(centralwidget);
live_window->setWindowTitle("Live View");
live_window->show();
}
void liveview::button_1x1_clicked()
{
qDebug() << "1 x 1";
Livecontroller->video_layout();
}
void liveview::button_2x2_clicked()
{
Livecontroller->video_layout();
}
I tried running qmake but nothing happened. button_1x1_clicked() function never get called. I am running qt 5.7 on ubuntu 16.04.