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 use "intelisense" to build "connect" ?
Qt 6.11 is out! See what's new in the release blog

how to use "intelisense" to build "connect" ?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 289 Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      connect has couple overloads but the parameters are always either sender, signal, receiver, slot or sender, 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.

      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