Results 1 to 6 of 6

Thread: KeyboardModifiers...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    40
    Thanks
    3
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: KeyboardModifiers...

    I ran your code and it worked fine on my computer. However, I think that the attached is a minimalist piece of code which does reflect the problem.

    To get it I need to use signals and slots. If there is anything wrong with the code (apart from I've not resized anything to fit nicely!) please let me know but it does illustrate the situation on my machine.
    Attached Files Attached Files
    Last edited by graeme; 10th May 2006 at 22:00.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: KeyboardModifiers...

    Ahh, it's the QApplication::keyboardModifiers() vs. QInputEvent::modifiers() which makes this notable difference.
    I was able to get correct results by catching table widget's mouse press and release events.
    Attached Files Attached Files
    J-P Nurmi

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

    graeme (10th May 2006)

  4. #3
    Join Date
    Jan 2006
    Posts
    40
    Thanks
    3
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: KeyboardModifiers...

    Nice work. Should I raise this with the Trolls?

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.