Results 1 to 2 of 2

Thread: How to add alternative shortcuts in smartest way?

  1. #1
    Join Date
    Aug 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to add alternative shortcuts in smartest way?

    I want add to my program alternative shortcuts (to invoke the same actions with different shortcuts). I found documentation page:
    http://doc.qt.nokia.com/4.6/qkeysequence.html
    But they cover (only) how to make key sequences, with no mention about alternative keys. I suppose that adding alternative shortcuts to the QPushButton should be as easy as adding single shortcut. But for now I know that I can do alternative shortcuts only with separate QAction objects. Is in Qt smarter/easiest way?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to add alternative shortcuts in smartest way?

    See QShortcut and its activated() signal.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Alternative to sscanf ??
    By Windsoarer in forum Qt Programming
    Replies: 7
    Last Post: 26th June 2009, 08:41
  2. alternative to qtextedit
    By Rooster in forum Newbie
    Replies: 4
    Last Post: 7th August 2008, 02:36
  3. Alternative Compiler
    By Rayven in forum Newbie
    Replies: 3
    Last Post: 25th May 2006, 20:57
  4. alternative to QMessageBox
    By incapacitant in forum Newbie
    Replies: 20
    Last Post: 24th May 2006, 14:49
  5. alternative to COM??
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 15:02

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.