Qt::META + Qt::Key_Tab



  • 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.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you try with Qt::Key_Meta ?



  • 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]



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


  • Lifetime Qt Champion

    Did you retry with the latest version of Qt Creator ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.