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. [Solved] Snippet with parameter in Qt Creator?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Snippet with parameter in Qt Creator?

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.1k 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.
  • EddyE Offline
    EddyE Offline
    Eddy
    wrote on last edited by
    #1

    I'm reading about the new goodies in Qt Creator.

    I like the way we can add our own code snippets using autocompletion and local storage ( I don't know if it was already there, but i didn't use it before in Qt Creator)

    I wondered if it's possible to use parameters in a snippit?
    Eg.
    Void foo( int $PARAMETER$) {
    int width = $PARAMETER$;
    ...
    }

    when you insert the snippit you get an input to change the parameter with what you want?

    Qt Certified Specialist
    www.edalsolutions.be

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      qt Creator Reference documentation says you have to use TAB to go to the parameter you want, then change it and all occurences will change also.

      Nice!

      Qt Certified Specialist
      www.edalsolutions.be

      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