Qt 6.11 is out! See what's new in the release
blog
Do we have no color and null value for QColor
-
In the following code, I want to send null for QColor
QColor myModel::getColorFromInstance(const QModelIndex& index ,myInst inst) const { GQColor *gcObj = myColor::getInstance(); if (gcObj) { return QColor(Qt::white); // I want to send null value from here to notify there is no color value . is it possibel } }Edit: Please wrap code snippets with 3 backticks. -- @Wieland
-
A
QColorcan be valid or invalid.QColor myFunc() { return QColor(); // returns an invalid QColor }