Results 1 to 2 of 2

Thread: what is the equal function of pressing right click

  1. #1
    Join Date
    Jan 2016
    Posts
    4
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default what is the equal function of pressing right click

    i need a function in Qt to do the work of pressing right click on the mouse. is there any function for this?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: what is the equal function of pressing right click

    You make a QMouseEvent instance, set its parameters appropriately, then call QCoreApplication::sendEvent() or QCoreApplication::postEvent(). Note the difference in how the QEvent argument to each of these methods is created.

Similar Threads

  1. Greater or equal than and smaller or equal than not working..
    By ruben.rodrigues in forum General Programming
    Replies: 3
    Last Post: 27th April 2011, 08:09
  2. How to declare a function for click button event
    By prajnaranjan.das in forum Newbie
    Replies: 8
    Last Post: 24th December 2010, 12:17
  3. What does Updatedata function in MFC equal with Qt?
    By nthung in forum Qt Programming
    Replies: 1
    Last Post: 6th June 2010, 11:58
  4. Replies: 4
    Last Post: 11th June 2009, 20:19
  5. Replies: 2
    Last Post: 11th January 2009, 23:24

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.