Results 1 to 3 of 3

Thread: how to include QApplication::x11EventFilter() in QWideget program?

  1. #1
    Join Date
    Jun 2010
    Posts
    21
    Thanks
    7
    Qt products
    Qt4

    Question how to include QApplication::x11EventFilter() in QWideget program?

    Dear All,

    I've implement a Scrip program. the declaration is as follows:
    Qt Code:
    1. class MainWindow : public QMainWindow {
    To copy to clipboard, switch view to plain text mode 

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

    Thanks beforehand.

    Tiger

  2. #2
    Join Date
    Jun 2010
    Posts
    21
    Thanks
    7
    Qt products
    Qt4

    Default Re: how to include QApplication::x11EventFilter() in QWideget program?

    too stupid?

  3. #3
    Join Date
    Jun 2010
    Posts
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: how to include QApplication::x11EventFilter() in QWideget program?

    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 ?

  4. The following user says thank you to rmwatson for this useful post:

    dzh1121 (28th June 2010)

Similar Threads

  1. Replies: 2
    Last Post: 23rd November 2007, 17:44
  2. Replies: 7
    Last Post: 10th September 2007, 19:35
  3. Catching XEvents with x11EventFilter
    By colfax4 in forum Qt Programming
    Replies: 1
    Last Post: 21st May 2007, 05:27
  4. What happens with X11 events after x11EventFilter?
    By krivenok in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2006, 18:47
  5. <QtGui/QApplication> vs. <QApplication>
    By seneca in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2006, 10:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.