Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator on Mac OS: Ctrl + Tab for switching documents
QtWS25 Last Chance

Qt Creator on Mac OS: Ctrl + Tab for switching documents

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 2.3k Views
  • 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.
  • N Offline
    N Offline
    Nesbit
    wrote on last edited by
    #1

    Hello everybody,

    On Windows and Linux the Ctrl+Tab shortcut is used for switching opened documents (or maybe more precisely: go to the previous opened document).

    Unfortunately this shortcut does not work on Mac OS.

    Could anybody please suggest me a way (maybe a hack) to enable it?

    Thank you in advance for your help.

    Update:
    In Keyboard Shortcut Preferences, I tried importing a .kms file where I set the entry QtCreator.GotoPreviousInHistory to Ctrl+Tab but it doesn't work.

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

      Hi,

      AFAIK, that's done in the "Keyboar Shortcuts" panel in the keyboard preferences

      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
      • N Offline
        N Offline
        Nesbit
        wrote on last edited by
        #3

        Hi SGaist,

        That does not allow me to set Ctrl + Tab as shortcut.

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

          Strange, however I don't know if it's an input bug

          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
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            Hi, I also wanted the same behavior from ctrl-tab in Qt Creator on Win/Linux/Mac, but on the Mac it cannot be done by importing .kms files or going into Preferences in Qt Creator.
            Instead, quit Qt Creator, start Notepad, I mean TextEdit on qtcreator.ini
            On Windows that file is in your AppData\Roaming directory but on the Mac it's in ~/.config/QtProject
            Open the file, look for the [KeyboardShortcuts] section, inside it find QtCreator.GotoPreviousInHistory. In Windows you'd use something like "Ctrl+Tab" but on the Mac Ctrl is called Meta (go figure), so instead you write:
            @
            QtCreator.GotoPreviousInHistory=Meta+Tab
            @

            Save and restart Qt Creator, voila

            EDIT: Forgot to say, if you have vanilla settings (i.e. using the default Option+Tab for switching) then there will be no QtCreator.GotoPreviousInHistory line present. In that case, just insert it on a new line :-)

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Nesbit
              wrote on last edited by
              #6

              Finally something that works !!! Thank you so much, hskoglund !

              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 Extensions
              • Unsolved