Results 1 to 9 of 9

Thread: Simulate mouse click

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Location
    India
    Posts
    7
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Simulate mouse click

    hope this helps:

    include the header file "windows.h"
    and use mouse_event(5 param);

    here's what I did for Right Click:
    Qt Code:
    1. mouse_event(MOUSEEVENTF_RIGHTDOWN,100, 200, 0,0);
    2. mouse_event(MOUSEEVENTF_RIGHTUP, 100, 200, 0,0);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Dec 2013
    Posts
    8
    Thanks
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Android

    Default Re: Simulate mouse click

    Although posted a long time ago , it gives me many tips.Thanks all.

Similar Threads

  1. How to simulate QTouchEvent using mouse
    By dpatel in forum Qt Programming
    Replies: 5
    Last Post: 28th April 2016, 01:40
  2. how to simulate mouse click behavior?
    By hashb in forum Qt Programming
    Replies: 2
    Last Post: 31st August 2010, 07:53
  3. Replies: 4
    Last Post: 15th March 2010, 14:49
  4. mouse click in QGprahicsScene
    By Morea in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2006, 08:21
  5. mouse click event
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 1st May 2006, 09: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
  •  
Qt is a trademark of The Qt Company.