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. How to complete function parameters automatically ?
Qt 6.11 is out! See what's new in the release blog

How to complete function parameters automatically ?

Scheduled Pinned Locked Moved Qt Creator and other tools
13 Posts 3 Posters 7.9k 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.
  • L Offline
    L Offline
    ludde
    wrote on last edited by
    #2

    I don't think that's a keyboard shortcut, it's just "intellisense" - you get a list of options as you type, choose one of them and press enter.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #3

      How I choose one ?
      I can change them with the arrow key but when I press enter it just skip a line in my document.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        ludde
        wrote on last edited by
        #4

        Works for me with arrow keys and then enter. Using Qt Creator 2.2.0 on Windows.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          ludde
          wrote on last edited by
          #5

          Also, the list of options can be made to appear using Ctrl+space.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #6

            Qt Creator 2.2.1 on windows.
            It just skip a line...
            There is an option to activate ?

            Edit: ctrl+space is useful for a class name or function. But do not work for the parameters of a function. (watch the video, it's just a yellow popup)

            1 Reply Last reply
            0
            • L Offline
              L Offline
              ludde
              wrote on last edited by
              #7

              There are some options under Text Editor / Completion, but I'm pretty sure I haven't changed any of those.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #8

                Yeah I've tried to play with those option without result.
                Edit: actually on the video it's a blue pop-up on my screen it's yellow.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  ludde
                  wrote on last edited by
                  #9

                  Then I really have no idea what's happening, sorry...

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #10

                    Just to be sure we are talking about the same thing look at this "screen":http://img705.imageshack.us/img705/3894/imagerh.png

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #11

                      This is not the same thing. The yellow popups shows the parameters expected by the function.

                      Typing Enter won't do anything except inserting a new line.

                      However, when you're in a class header and start overriding a method (let's say paint, as in the video you linked), then creator will show a blue popup and typing Enter will automatically complete the method signature.

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #12

                        Ok thanks I thought it was the same pop-up !

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          ludde
                          wrote on last edited by
                          #13

                          If you think about it, there is no way for Qt Creator to add anything useful for you in that situation. What you normally put there are a number of variable names or constants, but Qt Creator cannot possibly know which ones.

                          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