Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. Qt changing the values of elements of UI
Forum Update on Monday, May 27th 2025

Qt changing the values of elements of UI

Scheduled Pinned Locked Moved Unsolved Qt in Education
3 Posts 2 Posters 951 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
    Al Jaber
    wrote on last edited by
    #1

    I am new in Qt, now I created a UI and everything is working fine
    In my UI, there are a lot of elements (Combobox, line edit, spin box .... etc) and I want a comfortable and convenient way that allows me to fill these elements by using a pre-saved configuration file, that is mean this configuration file should contain the elements' values of my UI. And at the end, if I change these values from UI, the corresponding values in the config file should also change. Is there any help?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      There is no easy and automatic way to do it, I think. Start by looking into QSettings. You can use that class to load data on startup (probably in constructor of your UI class) and save when data in UI changes (add code to relevant slots).

      (Z(:^

      A 1 Reply Last reply
      0
      • sierdzioS sierdzio

        There is no easy and automatic way to do it, I think. Start by looking into QSettings. You can use that class to load data on startup (probably in constructor of your UI class) and save when data in UI changes (add code to relevant slots).

        A Offline
        A Offline
        Al Jaber
        wrote on last edited by
        #3

        @sierdzio thank you. I wish there was a direct and easy way. I will search in QSettings

        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