Results 1 to 2 of 2

Thread: Shortcut keys??

  1. #1
    Join Date
    Mar 2011
    Posts
    29
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Shortcut keys??

    What is the proper way to implement shortcut keys in a desktop applications?
    I have buttons and I want to assign them shortcuts keys (well some shortcuts might not be attached to any visual element).
    My current attempt to add them to the root element doesn't work. I probably do not understand well enough how the Keys element works.

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Shortcut keys??

    For a button you can use QAbstractButton::setShortcut()
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Shortcut, some keys won't work
    By smoon in forum Qt Programming
    Replies: 0
    Last Post: 27th February 2011, 11:19
  2. Assign shortcut keys to buttons
    By mecrazycoder in forum Newbie
    Replies: 0
    Last Post: 7th January 2011, 22:42
  3. How to identify Num pad keys
    By sanjayshelke in forum Qt Programming
    Replies: 1
    Last Post: 2nd September 2008, 17:43
  4. Using Short cut keys
    By joseph in forum Qt Programming
    Replies: 14
    Last Post: 18th March 2008, 19:34
  5. QHash with 2 keys?
    By MrGarbage in forum Qt Programming
    Replies: 5
    Last Post: 6th September 2007, 01:09

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.