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. [SOLVED] I use F2 to jump to a function definition, can I jump back to a function usage?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] I use F2 to jump to a function definition, can I jump back to a function usage?

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 4.0k 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.
  • V Offline
    V Offline
    vincegata
    wrote on last edited by
    #1

    Hello,

    So, first I use F2 to jump from a function usage (can be many occurrences of a function usage in my app) to a function definition, now I want to jump back to a function usage where I came from. Is it possible and how?

    Thank you!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      I believe you can use Alt-LeftArrow to back up to the previous spot you were in before the jump.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vincegata
        wrote on last edited by
        #3

        it is - thank you!

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Or try pressing F2 again...

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            Shameless plug: Check out http://developer.qt.nokia.com/videos/watch/meet-qt-creator-ide

            I am explaining how I use Qt Creator and giving a rather subjective view on what is great with it. It has a section on navigation, too:-)

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vincegata
              wrote on last edited by
              #6

              Pressing F2 again gets me into header file to function prototype, not where I came from.

              Thanks for video, I'll check it out once I am tired.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                Oh, right. Sorry, I misread your original question:-( mlong is right, Alt-LeftArrow is what you are looking for. You can also click on the yellow arrows at the top-left of your editor to do the same thing or use Alt-Tab to get a small window with the open documents (ordered by last visited).

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vincegata
                  wrote on last edited by
                  #8

                  Alt-Tab opens a list of opened applications in Ubuntu :)

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tobias.hunger
                    wrote on last edited by
                    #9

                    Yeah, it is Ctrl-Tab/Ctrl-Shift-Tab... I should have looked it up to make sure before writing this. I use it so often that I am not even sure anymore what the exact key-combos are.

                    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