serializeing QColor in a subdirs project.
- 
When you have a subdirs project and you need to save a QColor from your GUI frontend, you can't because QColor is QT += gui. I know the work around would be to save them as integers in a list or something of that nature. I'm wondering how others have dealt with this. 
- 
When you have a subdirs project and you need to save a QColor from your GUI frontend, you can't because QColor is QT += gui. I know the work around would be to save them as integers in a list or something of that nature. I'm wondering how others have dealt with this. @JoeJoe_000 I don't understand: where in your subdirs project do you want to serialize QColor? If you want to use QColor then you need "QT += gui" - what is the problem with that? Can you explain better your use case? 
- 
I guess there's no problem with that.... 
- 
I guess there's no problem with that.... @JoeJoe_000 QColor has it its core a QRGB and that stores it values in a int32, IIRC you should be able to simply cast from one into the other and create a QColor from QRGB and extract QRGB from QColor 
- 
@JoeJoe_000 QColor has it its core a QRGB and that stores it values in a int32, IIRC you should be able to simply cast from one into the other and create a QColor from QRGB and extract QRGB from QColor @J-Hilk said in serializeing QColor in a subdirs project.: core a QRGB and that stores it values in a int32, IIRC you should be able to simply cast from one into the other and create a QColor from QRGB and extract QRGB from QColor okay thank you I'll try that. 
 

