Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Embedded properties within string
Forum Update on Monday, May 27th 2025

Embedded properties within string

Scheduled Pinned Locked Moved Solved QML and Qt Quick
stringpropertiesbash
3 Posts 2 Posters 357 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.
  • M Offline
    M Offline
    magrif
    wrote on 13 Dec 2022, 14:47 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
    • J Offline
      J Offline
      JoeCFD
      wrote on 13 Dec 2022, 15:04 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
      • M Offline
        M Offline
        magrif
        wrote on 13 Dec 2022, 15:17 last edited by
        #3

        Thanks, I found examples for JS here.

        1 Reply Last reply
        0

        1/3

        13 Dec 2022, 14:47

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved