PDA

View Full Version : how to include QApplication::x11EventFilter() in QWideget program?



dzh1121
24th June 2010, 00:26
Dear All,

I've implement a Scrip program. the declaration is as follows:

class MainWindow : public QMainWindow {

But seem that I need to implement the abstract function of QApplication::x11EventFilter().

Thanks beforehand.

Tiger

dzh1121
24th June 2010, 03:43
too stupid?:confused:

rmwatson
26th June 2010, 20:27
Pretty new to Qt, but after a glance at the docs, QMainWindow does not derive from QApplication, this function is virtual on QApplication and so you would override this function in a subclass of QApplication. Looks like 5 minutes of playing around to see if that works, no ?