Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi guys,
in QcolorComboBox, if I get the RGB number, how can I get the correspongind text? thanks.
Fixed! @ QString name = curveParms->curveColor().name(); QStringList colorNames = QColor::colorNames();
for (int i = 0; i < colorNames.count(); ++i) { QString cn = colorNames[i]; QColor color(cn); if(color.name().compare(name) == 0) { name = cn; } } v = QVariant(name);
@