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. qt-creator 3.6 variables (for snippets)
Forum Updated to NodeBB v4.3 + New Features

qt-creator 3.6 variables (for snippets)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 1.2k Views
  • 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
    androndo
    wrote on last edited by
    #1

    At changes from qt-creator 3.6.0: "Made it possible to use Qt Creator variables in snippets". Can I get information about avaliable variables for it? For example I need snippet for GTest:

    TEST_F(%{CurrentFile}, $test_name$)
    {
        $test_body$
    }
    

    But %{CurrentFile} variable does not exist.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      androndo
      wrote on last edited by androndo
      #2

      I found avaliable variables at special dialog from Qt Creator (projects->build&run->run->"Arguments" field->press right button "Insert Variable".
      Now the snippet for gtest looks like:

      TEST_F(%{CurrentDocument:FileBaseName}, $test_name$)
      {
          $test_body$
      }
      
      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