Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Keyboard shortcut in Qt Creator
Qt 6.12 LTS is out! See what's new in the release blog

Keyboard shortcut in Qt Creator

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

    I'd like to change the keyboard shortcuts for switching between different modes i.e. edit, design, debug, and project. I set my preferred keyboard shortcuts through Tools -> Options -> Environment -> Keyboard tab. I then apply the changes and close the Option window. The shortcuts work properly. I check the QtCreator.ini file and confirm that they are saved under [KeyboardShortcuts] category as:

    QtCreator.Mode.Design=Ctrl+1
    QtCreator.Mode.Edit=Ctrl+`
    QtCreator.Mode.Mode.Debug=Ctrl+2
    QtCreator.Mode.Project=Ctrl+3
    

    Now, I close Qt Creator and check the QtCreator.ini again and confirm that the newly modified shortcuts are still there. However, when I run Qt Creator again, it changes the QtCreator.ini and removes two of my shortcuts. This is what it has now:

    QtCreator.Mode.Design=Ctrl+1
    QtCreator.Mode.Edit=Ctrl+`
    

    I repeated this process couple of times with no luck. How can I fix this? Is this a bug?

    (I am using Qt Creator 4.5.2 in Linux.)

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

      Hi and welcome to devnet,

      Just for checking, does it also happen if you replace the shortcut for QtCreator.Mode.Edit by Ctrl+4 ?

      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
        Neshom
        wrote on last edited by
        #3

        Hello,

        As you could tell from my question, the QtCreator.Mode.Edit is working just fine with my new keyboard shortcut as it is not the problem. QtCreator.Mode.Mode.Debug and QtCreator.Mode.Project are the problem. They work just fine when I set the new keyboard shortcuts for them. However, as soon as I restart Qt Creator, it resets them back to their original keyboard combination.

        aha_1980A 1 Reply Last reply
        0
        • N Neshom

          Hello,

          As you could tell from my question, the QtCreator.Mode.Edit is working just fine with my new keyboard shortcut as it is not the problem. QtCreator.Mode.Mode.Debug and QtCreator.Mode.Project are the problem. They work just fine when I set the new keyboard shortcuts for them. However, as soon as I restart Qt Creator, it resets them back to their original keyboard combination.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @Neshom

          I guess bugreports.qt.io is then your place to go.

          Regards

          Qt has to stay free or it will die.

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

            That was clear, my test suggestion was to determine whether it is the Ctrl+ ` that is not parsed correctly and thus gives you that behaviour.

            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
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The report is: https://bugreports.qt.io/browse/QTCREATORBUG-20102

              Qt has to stay free or it will die.

              1 Reply Last reply
              1
              • aha_1980A aha_1980

                Hi @Neshom

                I guess bugreports.qt.io is then your place to go.

                Regards

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Neshom Can you please close this thread now as SOLVED? Thanks.

                Qt has to stay free or it will die.

                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