Results 1 to 3 of 3

Thread: how can I know if control pressed inside mousePressEvent ?

  1. #1
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile how can I know if control pressed inside mousePressEvent ?

    Hi!

    Doing a small CAD program I'd like to know the best way to discover is control is pressed when user cliks screen. I mean, I'm trying to create soething like corel draw, where if you press conotrol you may select several objects.

    Is there any method to know if control is pressed inside mousePressEvent?
    Or should I reimplement keyPresed and keyReleased and create a flag (m_control_is_pressed) and test it inside mousePressEvent?

    What do you think?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how can I know if control pressed inside mousePressEvent ?


  3. The following user says thank you to Lykurg for this useful post:

    ricardo (3rd July 2009)

  4. #3
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how can I know if control pressed inside mousePressEvent ?

    That's what I was looking for. Thanks.

Similar Threads

  1. Replies: 1
    Last Post: 6th July 2009, 13:48
  2. Replies: 6
    Last Post: 3rd February 2006, 09:48

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.