Results 1 to 3 of 3

Thread: problem in simple example for installEventFilter

  1. #1
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default problem in simple example for installEventFilter

    hi

    please do click on item &view and see application freeze!
    where is the problem?

    regards
    navid
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem in simple example for installEventFilter

    add this line
    Qt Code:
    1. ...
    2. return QMainWindow::eventFilter(obj, event);
    3. ...
    To copy to clipboard, switch view to plain text mode 
    in you reimplementation of eventFilter.
    i.e.
    Qt Code:
    1. bool MainWindow::eventFilter(QObject *obj, QEvent *event)
    2. {
    3. event->accept();
    4. return QMainWindow::eventFilter(obj, event);
    5. }
    To copy to clipboard, switch view to plain text mode 
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Oct 2009
    Posts
    90
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: problem in simple example for installEventFilter

    thanks

    also, please check this:
    again do click on item &view, you have to do extra (bad) click to disappear popup menu, when want to go to other items of menubar.

    what is the solution?

    best regards
    navid
    Attached Files Attached Files

Similar Threads

  1. Simple Threaded Http Server
    By obi in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2009, 10:42
  2. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  3. Simple QtPainter problem
    By rishid in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2008, 21:00
  4. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.