Salut Laurent,
Hallo Vadoola,
see https://github.com/search?q=repo%3Aqele … ;type=code
Like :
{"HTMLWhiteFloralWhite", 869 {Qt::SolidPattern, QColor(255, 250, 240)}},
Sorry for the misunderstanding, I had already found that section of code, and added in appropriate conversions in dxf2elmt, I was more curious if there was some particular reason it was done that way.
I guess it is just because to have colors with names and Qt has defined some:
Look here: https://doc.qt.io/archives/qt-5.15/qml-color.html
It's certainly possible I guess, but as far as I understand QET doesn't use any QML, and it looks like QColor only defines a handful of basic colors like red, blue, etc. All these colors used by QET are defined in QET, and have different names to the QML ones.
It's certainly not a big deal, what is there functions, and adding in these conversions into dxf2elmt wasn't difficult, it just seemed like a bit of extra work/code that using RGB values, and I was mostly just curious why it was done this way.
