Difference between QColorConstants and Qt::GlobalColor
Solved
General and Desktop
-
Hello,
there are at least two ways to call pre-defined color with Qt: Qt::GlobalColor and QColorConstants. It seems redundant to me.Is there a reason to prefer one over the other?
-
Qt::Color is the old 'version' and a plain enum so it can e.g. accidentally converted to an integer. This was fixed in QColorConstants.
1/2