Navigation

    Qt Forum

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

    • UNSOLVED How to Make Accelerator with & Sign to Work on Mac?
      General and Desktop • mac shortcut • • ChiK  

      4
      0
      Votes
      4
      Posts
      50
      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 copy shortcut shortcutoverrid • • zespy  

      4
      0
      Votes
      4
      Posts
      1354
      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
      2131
      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
      1653
      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
      8608
      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
      793
      Views

      No one has replied

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

      3
      0
      Votes
      3
      Posts
      974
      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 qt 5.5.0 shortcut dispatch • • markanth2  

      3
      0
      Votes
      3
      Posts
      1537
      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
      415
      Views

      No one has replied