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:

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();
}
mainwindow.h contains:

Code:
public Q_SLOTS: //slots to receive action of menu trigger.
   void ShowAction();
private slots:
    void on_pushButton_clicked();
In mainwindow.cpp I am trying to use the following 2 functions like :

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();
}
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:

Warnings are like:

Code:
[Qt Message] QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
[Qt Message] QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
Please guide me on this issue.

Thanks...