Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. shortcut
    Log in to post

    • UNSOLVED Action Focus behaviour
      General and Desktop • focus shortcut action focusscope • • IvanC  

      1
      0
      Votes
      1
      Posts
      44
      Views

      No one has replied

    • SOLVED QAction::event: Ambiguous shortcut overload - 2 checkable actions for the same setting
      General and Desktop • qaction shortcut ambiguous • • Tudal  

      5
      0
      Votes
      5
      Posts
      117
      Views

      I see what you did. The WidgetAction acts as a container handling the shortcut. It is similar to a custom widget. As you said, it seems over complicated, so I will keep it simple for now, maybe by manually showing the shortcut in both actions, or in its parent.
    • SOLVED How to capture combination key with [Window] Key?
      General and Desktop • qml shortcut • • MintogoDeveloper  

      5
      0
      Votes
      5
      Posts
      135
      Views

      @ChrisW67 Ok I understood... Thank you.
    • UNSOLVED Creating app's shortcut & setting app as a default to .txt files
      General and Desktop • shortcut default app • • Corvette653  

      4
      0
      Votes
      4
      Posts
      96
      Views

      I think I found a solution https://answers.microsoft.com/en-us/windows/forum/windows_10-files/windows-file-association-explained-for-desktop/cfa62c00-82e0-4d05-b302-3444ab930bb7 I understand windows xp and 7 ways but can someone help me win the new one? and say if I can do this by code (I mean if I give someone my app, I want this to set automatically)
    • UNSOLVED How to Make Accelerator with & Sign to Work on Mac?
      General and Desktop • mac shortcut • • ChiK  

      4
      0
      Votes
      4
      Posts
      172
      Views

      Right, I forgot that part. The "workaround" is explained in the QKeySequence documentation linked from the QShortcut one.
    • SOLVED Override default copy/paste from QTextEdit
      General and Desktop • qtextedit qevent shortcut copy shortcutoverrid • • zespy  

      4
      0
      Votes
      4
      Posts
      1882
      Views

      Unfortunately, it doesn't seems to work... actions() returns me an empty list. I think I'll go for QTextEdit::createMimeDataFromSelection() because otherwise I won't be able to deal with drag & drop (I didn't think about it :/ ) Thanks anyway!
    • UNSOLVED Filtering shortcut in eventFilter not working
      General and Desktop • eventfilter shortcut • • mpergand  

      11
      0
      Votes
      11
      Posts
      2472
      Views

      With Qt, you usually trigger a signal when conditions are met that you connect to the setEnable of the QAction you want. Or you modify the action object directly.
    • UNSOLVED Sending key shortcuts to active window
      General and Desktop • event shortcut • • Peppy  

      5
      0
      Votes
      5
      Posts
      1846
      Views

      Well, I have a custom shortcut shC applied to Action/Menu which is global (in every window), but I can not register that into window A, or window B. I mean, I am on OS X, where there is only one menubar that is shared across the multiple windows, so I have to dispatch them, right? I mean, for example, Qt Creator has a shortcut "Run" which is invokable from many windows. But I can not make two menubars and/or having two actions, right?
    • SOLVED QPushButton in QMessageBox missing key shortcut underline on initial display
      General and Desktop • qpushbutton shortcut qmessagebox underline • • Harry123  

      24
      0
      Votes
      24
      Posts
      9583
      Views

      @Harry123 I did it putting this in main.cpp and that's all folks ;-) QApplication a(argc, argv); a.setStyle("fusion");
    • create desktop shortcut on fedora and rhel using Qt Installer Framework.
      General and Desktop • installer shortcut redhat 6 fedora • • Ratzz  

      1
      1
      Votes
      1
      Posts
      912
      Views

      No one has replied

    • Focus of shortcut
      General and Desktop • shortcut modal dialog • • ling32945  

      3
      0
      Votes
      3
      Posts
      1089
      Views

      Hi SGaist, Thanks for your reply. I don't think it caused by missing QWidget::addAction, because sometimes the shortcuts works well. I've used the default shortcuts of widget(copy, paste and cut). It's strange that after the child window lunched the shortcuts don't work, but after click the Main window's menu bar(even the button in menu is disabled), the shortcuts works well. So i suspected whether there is the shortcut focus.
    • Qt Ctrl++ (Control Plus Plus) Shortcut Not Working in Qt 5.5
      General and Desktop • gui creator keyboard shortcut qt 5.5.0 dispatch • • markanth2  

      3
      0
      Votes
      3
      Posts
      1648
      Views

      Yes, you are correct. There is more information here for anyone else interested: https://bugreports.qt.io/browse/QTBUG-47701
    • SWAP comments in Qt Creator
      Tools • qt creator shortcut • • louis  

      1
      0
      Votes
      1
      Posts
      465
      Views

      No one has replied