[SOLVED] Saving custom user settings in Qt
-
wrote on 8 Aug 2012, 12:13 last edited by
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.
-
wrote on 8 Aug 2012, 18:13 last edited by
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.
-
wrote on 8 Aug 2012, 19:16 last edited by
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?
-
wrote on 12 Jan 2015, 15:18 last edited by
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
-
wrote on 12 Jan 2015, 15:18 last edited by
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