Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt::META + Qt::Key_Tab
Qt 6.12 LTS is out! See what's new in the release blog

Qt::META + Qt::Key_Tab

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    x610
    wrote on last edited by
    #1

    Hello,

    I'm trying to bind Qt::META + Qt::Key_Tab shortcut in QTabWidget to change current tab (like it works in chrome or many other applications).
    I have tried every single solution found in google, but this shortcut combination is not working.

    I have tried:

    • QShortcut
    • QAction
    • capturing keys using virtual QWidget::event
    • capturing keys using virtual QWidget::eventFilter with installEventFilter
    • all relative like keyPressed and etc..

    QWidget::event catches Shift+Tab, Alt+Tab, but not Ctrl(META)+Tab.

    Can somebody explain me what is wrong and so special with this particular key combination in QT on OSX?

    *Note: *It works great on Windows, it doesn't work on OSX!

    Some information:
    OSX Mountain Lion 10.8.5
    QT 5.x

    I'm newbie to this forum, so please let me know if you need more info.

    I appreciate any help.
    Thanks in advance!

    UPD: In Qt Creator I'm not able to set Ctrl+Tab shortcut, thats really ridiculous.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you try with Qt::Key_Meta ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        x610
        wrote on last edited by
        #3

        Just tried, Qt::Key_Meta + Qt::Key_Tab becomes Shift+# (⇧#).

        Thanks for reply!

        [quote author="SGaist" date="1387493644"]Hi and welcome to devnet,

        Did you try with Qt::Key_Meta ?[/quote]

        1 Reply Last reply
        0
        • X Offline
          X Offline
          x610
          wrote on last edited by
          #4

          Funny, in QT Creator you can't set Ctrl+Tab shortcut either.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you retry with the latest version of Qt Creator ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt
            • Unsolved