Code:
#include "mainwindow.h" #include "ui_mainwindow.h" ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } { Q_OBJECT protected: }; Mouse *mouse = new Mouse(); { return true; } else { // standard event processing } } label->installEventFilter(mouse);
I wanted to install event filter in Qlabel of my ui application ....I have posted the code above but I am having problem with it...I might be declaring the class in wrong section please help me how to install eventfilter in qlabel for mouseevent handling