Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Qt 3 Support Members for QColor

Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.

Открытые функции


Описание функций-членов

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::getRgba ( int * r, int * g, int * b, int * a ) const

Use getRgb() instead.

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

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.

Например, если у вас есть код

 QColor myColor;
 uint pixel = myColor.pixel(screen);

вы можете записать его в виде

 QColormap cmap = QColormap::instance(screen);
 uint pixel  = cmap.pixel(*this);

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

Это перегруженная функция, предоставленная для удобства.

Use getRgb() instead.

void QColor::setRgba ( int r, int g, int b, int a )

Это перегруженная функция, предоставленная для удобства.

Use setRgb() instead.


Copyright © 2008 Trolltech Торговые марки
Qt 4.3.5