Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

Compatibility Members for QColor

The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.

QColor class reference

Public Functions


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.

void QColor::hsv ( int * h, int * s, int * v ) const

Use getHsv() instead.

uint QColor::pixel ( int screen = -1 ) const

Returns the pixel value.

This value is used by the underlying window system to refer to a color. It can be thought of as an index into the display hardware's color table, but the value is an arbitrary 32-bit value.

The screen parameter is only used under X11 to specify the X11 screen.

See also alloc().

void QColor::rgb ( int * r, int * g, int * b ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use getRgb() instead.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp2