Results 1 to 3 of 3

Thread: Hot key for button

  1. #1
    Join Date
    Feb 2009
    Posts
    2

    Default Hot key for button

    Is there any convenient way to add a hot key for a button (in my case it is F1 key)?

  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: Hot key for button

    Quote Originally Posted by void0 View Post
    Is there any convenient way to add a hot key for a button (in my case it is F1 key)?
    A quick look to the docs says: QAbstractButton::shortcut or QWidget::grabShortcut().

  3. #3
    Join Date
    Feb 2009
    Posts
    2

    Default Re: Hot key for button

    Ok, thanks. I'll try to dig it out.

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.