Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
None
Description
It would be nice if QtCreator autocompleted enum types. I'm yet to find a C++ IDE that does that.
For instance, if the user has a QTextCursor object and they type myCursor.select( QtCreator would show the tooltip showing the arguments of the function and – since the first argument is an enum of type QTextCursor::SelectionType – it would suggest the options of that type.
The user may choose one of those options or just write code that returns a valid enum value. In the former case QtCreator would add the type prefix (i.e. QTextCursor::).
At the moment to know which options you can choose in an enum the only ways are (1) open documentation from the function and click on the type (2) write QTextCursor::<Ctrl+Space> and search them within the options of other enums and lots of methods.