Hi friends,
I am working on a GUI project. I have 2 .ui files mainwindow.ui and mapsmainwindow.ui.
My main.cpp contains the folowing etails:
mainwindow.h contains:Code:#include <QtGui/QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; #if defined(Q_WS_S60) w.showMaximized(); #else w.show(); #endif return a.exec(); }
In mainwindow.cpp I am trying to use the following 2 functions like :Code:public Q_SLOTS: //slots to receive action of menu trigger. void ShowAction(); private slots: void on_pushButton_clicked();
With above implementations I am able to Build successfully, but when the application is installed on device, it is giving warnings every time i clicked the pushButton and nothing happens:Code:void MainWindow::ShowAction() { MapsMainWindow w;//Loads mapsmainwindow.ui #if defined(Q_WS_S60) w.showMaximized();////mapsmainwindow.ui displayed in maximized mode #else w.show(); #endif } void MainWindow::on_pushButton_clicked() { ShowingAction(); }
Warnings are like:
Please guide me on this issue.Code:[Qt Message] QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked() [Qt Message] QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
Thanks...

Reply With Quote

