Results 1 to 4 of 4

Thread: Making QMouseEvent only triggered by MousePress and ignore move and release

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2017
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Making QMouseEvent only triggered by MousePress and ignore move and release

    I am using a function called InstallEventHandler which takes the name of the event and install handler to it

    installEventHandler("QWidget", "QMouseEvent","mouse_event")

    in which the QWidget is the type the the event handler is installed to, the QMouseEvent is the event that causes the handler to be called, and the mouse_event is the handler.

    I want the function to be triggered when mouse is pressed only but I am encountered with a problem that the QMouseEvent is generated with mouse moves and releases too not only QMousePressEvent. Which make the fuction gets called thousands of times and misses my code.

    I am trying since days to find a way and searching all the available methods but non is working.
    Last edited by mohatem; 18th September 2017 at 23:33.

Similar Threads

  1. Replies: 0
    Last Post: 22nd July 2014, 22:36
  2. Replies: 0
    Last Post: 18th June 2013, 11:54
  3. Replies: 0
    Last Post: 11th January 2011, 13:31
  4. Replies: 3
    Last Post: 28th September 2010, 11:48
  5. Make QDial ignore user input
    By burnchar in forum Qt Programming
    Replies: 4
    Last Post: 17th February 2010, 19:52

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