Results 1 to 1 of 1

Thread: shortcuts for all windows

  1. #1
    Join Date
    May 2013
    Posts
    45
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default shortcuts for all windows

    Hi.

    i have shortcuts in QMainWindow

    all works OK. but only when QMainWindow is active. when i have selected other Widget, this shortcuts not working. How edit code for using this shortcuts for all widgets in this application?

    EDIT: this work
    Qt Code:
    1. action->setShortcutContext(Qt::ApplicationShortcut);
    To copy to clipboard, switch view to plain text mode 
    Last edited by stevocz; 28th May 2014 at 13:21.

Similar Threads

  1. Help with QT shortcuts?
    By fluffaykitties in forum Qt Programming
    Replies: 12
    Last Post: 16th April 2018, 13:32
  2. qml key shortcuts
    By antialias_forum in forum Qt Quick
    Replies: 0
    Last Post: 22nd December 2010, 14:45
  3. Shortcuts for QActions...
    By ericV in forum Qt Programming
    Replies: 2
    Last Post: 19th October 2009, 13:18
  4. Pb with shortcuts on Mac OS
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 22nd May 2008, 19:22
  5. Creatin Key Pad shortcuts
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 19th May 2006, 05:50

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.