how to use "intelisense" to build "connect" ?
-
Accidentally "discovered" "connect" option...
nice , but
The "intelisense tool tip " cannot be "screen shot " and it has six overloads for "connect" QListWidget
Is there QT documentation / example on how to actually implement - step by step , while the tool tip is active - the "connect" function .
I am NOT asking how to write "connect " code - I am asking how to use the QT "connect" tool tip.
For example
ui->listWidget->connect....
or is there a way to print all "connect:" tool tips in QtCreator?
-
I'm not entirely sure what you're asking. The tooltip is there to tell you what parameters the function takes. That's it. It's just a hint. It doesn't build anything.
connecthas couple overloads but the parameters are always eithersender, signal, receiver, slotorsender, signal, functor. The overloads just differ in types of these parameters because you have either the string or function pointer syntax and can use different functors - member functions, lambdas etc.You can scroll through the list of overloads with the up and down arrow keys or with a scrollwheel over the tooltip.
When you start typing the parameters the tooltip highlights which parameter you are on. When you type,it highlights the next one and so on. If the tooltip closes at any point you can show it back by pressing ctrl+space.The tooltip is not a tool for writing code for you. It just shows function parameters so you don't have to have documentation opened or jump to declaration to see what parameters to pass.