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. How to create single QML file with all the constants or labels so that it can reused
QtWS25 Last Chance

How to create single QML file with all the constants or labels so that it can reused

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 526 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
    MaruthiMarsh
    wrote on last edited by
    #1

    How to create single QML file with all the constants or labels so that it can reused in all the other qml files?

    Probably this is answered earlier, a link to it will be great.

    raven-worxR 1 Reply Last reply
    0
    • M MaruthiMarsh

      How to create single QML file with all the constants or labels so that it can reused in all the other qml files?

      Probably this is answered earlier, a link to it will be great.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @MaruthiMarsh
      create a singleton componen:
      https://wiki.qt.io/Qml_Styling#Approach_2:_Style_Singleton

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      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