guys please figure out this...I am still having problem
my code are as follows::
main.cpp
and my mainwindow.cppCode:
#include <QtGui/QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { MainWindow w; w.show(); a.installEventFilter(&w); return a.exec(); }
Code:
#include "mainwindow.h" #include "ui_mainwindow.h" #include "QDebug" #include "qdebug.h" ui(new Ui::MainWindow) { ui->setupUi(this); ui->label->installEventFilter(this); } { { qDebug("User clicked on label"); } } MainWindow::~MainWindow() { delete ui; }
and mainwindow class
ERROR::cannot open output file ..exeCode:
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> namespace Ui { class MainWindow; } { Q_OBJECT public: ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H