Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Saving custom user settings in Qt
Forum Update on Monday, May 27th 2025

[SOLVED] Saving custom user settings in Qt

Scheduled Pinned Locked Moved General and Desktop
25 Posts 6 Posters 17.8k 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.
  • F Offline
    F Offline
    fs_tigre
    wrote on 8 Aug 2012, 12:13 last edited by
    #21

    Understood, Thanks.

    I have said this a few times, I already took a c++ class, read a Qt book but some times is just hard to get everything understood in less than a year. I do programming as a hobby, I actually work full time as Mechanical Engineer.

    On this case I think my problem is a poor understanding of C++ in general but pass by reference and pointers are the main issue in this situation.

    I know I know, sorry for the time you guys wasted here.

    Thanks a lot for all of your previous help.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fs_tigre
      wrote on 8 Aug 2012, 18:13 last edited by
      #22

      I cannot believe it, it's working, after a few hours, I finally made this thing work.

      Made a few changes including, changing @inline void setColor(const QObject &myCurrentColor);@ to @void setColor(const QColor &myCurrentColor);@

      Even though it doesn't seem like I want to learn, I do, but sometimes it's hard, especially when you are not a programmer.

      Thanks a lot to all that helped.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on 8 Aug 2012, 19:16 last edited by
        #23

        I didn't say nothing about using inline functions in implementation files, because I was not sure why I always use it at headers. Obviously I read it in some book and now I do it without thinking.

        I'm sorry about my mistake specifying QObject instead of QColor, as Andre said that was “brain-to-terminal”, just an example, a possible solution.

        Glad to hear that finally you got it.

        Note: I'm not sure if I should correct my snippet of code for future readers. I think this could break the sequence of the posts. Andre, what do you think about this?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          astodolski
          wrote on 12 Jan 2015, 15:18 last edited by
          #24

          How would you format the color as a QColor entry in an INI type file?

          I want to read in a value from the file to set the initial color

          1 Reply Last reply
          0
          • A Offline
            A Offline
            astodolski
            wrote on 12 Jan 2015, 15:18 last edited by
            #25

            How would you format the color as a QColor entry in an INI type file?

            I want to read in a value from the file to set the initial color

            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