Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Embedded properties within string
Qt 6.12 LTS is out! See what's new in the release blog

Embedded properties within string

Scheduled Pinned Locked Moved Solved QML and Qt Quick
stringpropertiesbash
3 Posts 2 Posters 1.4k 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.
  • magrifM Online
    magrifM Online
    magrif
    wrote on last edited by
    #1

    I have saw bash-style syntax of embedding parameters in string as:

    property string st1: "Foo"
    property string st2: `${st1}/Bar`
    

    and it works. In st2 will "FooBar" value. Where can I read more about the syntax?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      Read more Java Script. QML works with Java Script. WIthout Qt, you can make GUI with JS as well.

      1 Reply Last reply
      1
      • magrifM Online
        magrifM Online
        magrif
        wrote on last edited by
        #3

        Thanks, I found examples for JS here.

        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
        • Unsolved