Results 1 to 4 of 4

Thread: catch global mouse press event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: catch global mouse press event

    You can install event filter on QApplication object, this way you can avoid "having to overwrite all mousePressEvent of all widgets".

  2. #2
    Join Date
    Jun 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: catch global mouse press event

    thanks I try

  3. #3
    Join Date
    Jun 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: catch global mouse press event

    works! thanks again

Similar Threads

  1. How to emit mouse press event in QPushButton
    By dpatel in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2010, 13:00
  2. QGraphicsview and mouse press event
    By eva2002 in forum Qt Programming
    Replies: 6
    Last Post: 26th January 2010, 05:04
  3. Mouse press event in a QGraphicsScene
    By Lykurg in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2009, 10:28
  4. Mouse press event detection
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2009, 13:08
  5. Checking for key press on mouse event
    By Cruz in forum Newbie
    Replies: 1
    Last Post: 24th January 2009, 18:18

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.