Qt 3 Support Members for QColorThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Functions
Member Function DocumentationQColor::QColor ( int x, int y, int z, Spec colorSpec )Use one of the other QColor constructors, or one of the static convenience functions, instead. void QColor::getRgba ( int * r, int * g, int * b, int * a ) constUse getRgb() instead. void QColor::hsv ( int * h, int * s, int * v ) constUse getHsv() instead. See also setHsv(). uint QColor::pixel ( int screen = -1 ) constReturns 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 QColormap cmap = QColormap::instance(screen); uint pixel = cmap.pixel(*this); void QColor::rgb ( int * r, int * g, int * b ) constThis is an overloaded member function, provided for convenience. Use getRgb() instead. void QColor::setRgba ( int r, int g, int b, int a )This is an overloaded member function, provided for convenience. Use setRgb() instead.
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |