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 Updated to NodeBB v4.3 + New Features

Qt changing the values of elements of UI

Scheduled Pinned Locked Moved Unsolved Qt in Education
3 Posts 2 Posters 956 Views 1 Watching
  • 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 13 Oct 2021, 05:22 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
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 13 Oct 2021, 05:34 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 13 Oct 2021, 05:39
      0
      • S sierdzio
        13 Oct 2021, 05:34

        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 13 Oct 2021, 05:39 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

        1/3

        13 Oct 2021, 05:22

        • 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