How to complete function parameters automatically ?
-
Works for me with arrow keys and then enter. Using Qt Creator 2.2.0 on Windows.
-
Also, the list of options can be made to appear using Ctrl+space.
-
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)
-
There are some options under Text Editor / Completion, but I'm pretty sure I haven't changed any of those.
-
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. -
Then I really have no idea what's happening, sorry...
-
Just to be sure we are talking about the same thing look at this "screen":http://img705.imageshack.us/img705/3894/imagerh.png
-
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.
-
Ok thanks I thought it was the same pop-up !
-
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.