Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Keyboard Shortcuts do not work in Qt Creator
QtWS25 Last Chance

Keyboard Shortcuts do not work in Qt Creator

Scheduled Pinned Locked Moved General and Desktop
creatorshortcutscpp editor
8 Posts 4 Posters 7.8k 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.
  • J Offline
    J Offline
    jakep
    wrote on last edited by
    #1

    I just started with Qt today. Qt Creator looks great; I am a long-time emacs user but this IDE looks good.

    However, none of the keyboard shortcuts that I expect to work while editing a C++ file seem to work at all. For example, Ctrl+A and Ctrl+E do not go to the beginning/end of lines.

    I am running Linux Mint 17.1, and Qt Creator 3.0.1.

    What am i doing wrong?

    S 1 Reply Last reply
    0
    • J jakep

      I just started with Qt today. Qt Creator looks great; I am a long-time emacs user but this IDE looks good.

      However, none of the keyboard shortcuts that I expect to work while editing a C++ file seem to work at all. For example, Ctrl+A and Ctrl+E do not go to the beginning/end of lines.

      I am running Linux Mint 17.1, and Qt Creator 3.0.1.

      What am i doing wrong?

      S Offline
      S Offline
      SysTech
      wrote on last edited by
      #2

      @jakep

      Hi and welcome! I don't use Qt (yet) under Linux. If you can figure out how to get into preferences then go to environment, keyboard you can setup/reconfigure pretty much as you like!

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jakep
        wrote on last edited by
        #3

        Thanks. That's what I did. I can get to the keyboard setup, and see all of the various shortcuts. They do not seem to work, i.e. they don't have any effect when I try to use a shortcut while editing a C++ file.

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Is the shortcut you set conflicting with any other (indicated by highlighting in red)?
          For example Ctrl+A is pretty much universally used for "select all" and that's what Qt Creator has set by default. If so you would have to disable that one first.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jakep
            wrote on last edited by
            #5

            Ah, I see (sort of). I did not set the shortcuts I want to use. They are already listed under text editor in the keyboard shortcut list. But they are indeed shown in red.

            So what does that mean? That is, what does it mean that the shortcut is already present in the keyboard setup, but is in red?

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              When it's red it means more than one action has this shortcut assigned and it will not work.
              Find the action you don't want to use that shortcut and set it to nothing or something else.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jakep
                wrote on last edited by
                #7

                Oh, thanks a million Chis; that worked. I searched for the shortcuts I want, and the conflicting ones, and set them as needed.

                There are just a few things that are pretty much wired into my brain from years of emacs use. Because I still use emacs heavily for lots of other work I would always be fighting with Creator unless I make a few emacs-y customizations.

                It looks like a really good IDE, BTW. Had I known about it earlier I probably would have switched to it even for C work.

                Best,

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

                  Hi and welcome to devnet,

                  Since you come from emacs you might also be interested in the FakeVim mode for edition

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