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. Shortcut for choosing functions in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Shortcut for choosing functions in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 779 Views 3 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.
  • J Offline
    J Offline
    JohnLocke
    wrote on last edited by
    #1

    If I send Ctrl+K Qt Creator allows you to choose h or cpp file, then if I send Ctrl+K I can jump to nessesary line in Qt Creator

    I need to browse betwen functions in chose class;
    Say, I have Class with fn a, b, c
    I know the name, dont want to scroll or use Ctrl+F to find the function
    I need shorcut to send name or part of the name to jump to function
    Please advise if its exist

    Pl45m4P Chris KawaC 2 Replies Last reply
    0
    • J JohnLocke

      If I send Ctrl+K Qt Creator allows you to choose h or cpp file, then if I send Ctrl+K I can jump to nessesary line in Qt Creator

      I need to browse betwen functions in chose class;
      Say, I have Class with fn a, b, c
      I know the name, dont want to scroll or use Ctrl+F to find the function
      I need shorcut to send name or part of the name to jump to function
      Please advise if its exist

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @JohnLocke said in Shortcut for choosing functions in Qt Creator:

      I need shorcut to send name or part of the name to jump to function

      Isn't this exactly what Ctrl + F does?!
      You want to put the name there but dont want to search?! How should this work?
      One option is to click and follow the declaration in header, since they have usually less lines than the code file.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
      • J JohnLocke

        If I send Ctrl+K Qt Creator allows you to choose h or cpp file, then if I send Ctrl+K I can jump to nessesary line in Qt Creator

        I need to browse betwen functions in chose class;
        Say, I have Class with fn a, b, c
        I know the name, dont want to scroll or use Ctrl+F to find the function
        I need shorcut to send name or part of the name to jump to function
        Please advise if its exist

        Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @JohnLocke Press Ctrl+K and then type m and start typing the name or part of the name of the function. It will list every member function that matches and you can jump to it.

        J 1 Reply Last reply
        4
        • Chris KawaC Chris Kawa

          @JohnLocke Press Ctrl+K and then type m and start typing the name or part of the name of the function. It will list every member function that matches and you can jump to it.

          J Offline
          J Offline
          JohnLocke
          wrote on last edited by
          #4

          @Chris-Kawa yes it works with exeptions: if you linked external library (not set into qmake pro.file) it would not work

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SimonSchroeder
            wrote on last edited by
            #5

            I rarely use this kind of functionality in Qt Creator. Most of the time I put the cursor on a function in the current code and hit F2 to jump to the definition. You can also easily toggle between header and cpp file with F4. If your classes don't do too much in one place it is easy to find the right function in the header file and then hit F2 to switch to the definition. You can also split views (horizontally or vertically) to have multiple functions side-by-side. This is how I use Qt Creator most of the time. (Concerning Ctrl+K: There is a huge list of command listed that can be used here. If you are already inside the correct file you can use . (just a dot – after hitting Ctrl+K) followed by a space and then type any symbol name (i.e. also functions) to jump to a specific function in the open document. Get to the right source file with p and then typing the file name.)

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved