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. Using QML Settings (Qt.labs.settings) properties into Qt C++ file
Forum Update on Monday, May 27th 2025

Using QML Settings (Qt.labs.settings) properties into Qt C++ file

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 768 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.
  • RiteshPanchalR Offline
    RiteshPanchalR Offline
    RiteshPanchal
    wrote on last edited by A Former User
    #1

    I am using Qt 5.5.1 in ubuntu.
    I am working in Qt Quick Application Project. In this project there are several QML files.
    I am using import Qt.labs.settings 1.0 in all qml files to save some GUi Parameters. Now i am having several .cpp files other than main.cpp.

    So how can i get all QML files setting properties in a single .cpp file?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can use QSettings to read the information you want back.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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