Is it possible to set a QColor, then save it into SQLite in some form then be able to easily reload it?
I would appreciate any help!
Thank you!
Is it possible to set a QColor, then save it into SQLite in some form then be able to easily reload it?
I would appreciate any help!
Thank you!
You can write a QColor on a QByteArray with QDataStream and then write in a SQLITE db as BLOB
A camel can go 14 days without drink,
I can't!!!
How would I transfer back if I have saved it to the DB as .name() thus giving the #00FF00 format?
You could use the QColor constructor taking a const char * parameter :or the QString one :Qt Code:
To copy to clipboard, switch view to plain text modeQt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks