Compatibility Members for QColor
The following members of class QColorare part of the Qt compatibility layer. We advise against using them in new code.
|QColor(int x, int y, int z, Spec colorSpec)|
|void||hsv(int * h, int * s, int * v) const|
|uint||pixel(int screen = -1) const|
|void||rgb(int * r, int * g, int * b) const|
Member Function Documentation
QColor::QColor(int x, int y, int z, Spec colorSpec)
Use one of the other QColor constructors, or one of the static convenience functions, instead.
Use getHsv() instead.
See also setHsv().
uint QColor::pixel(int screen = -1) const
Returns the pixel value used by the underlying window system to refer to a color.
Use QColormap::pixel() instead.
For example, if you have code like
QColor myColor; uint pixel = myColor.pixel(screen);
you can rewrite it as
Use getRgb() instead.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.