Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Qt 3 Support Members for QColor

The 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

QColor ( int x, int y, int z, Spec colorSpec )
void getRgba ( int * r, int * g, int * b, int * a ) const
void hsv ( int * h, int * s, int * v ) const
uint pixel ( int screen = -1 ) const
void rgb ( int * r, int * g, int * b ) const
void setRgba ( int r, int g, int b, int a )

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::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.

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 ) const

Use getRgb() instead.

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

Use setRgb() instead.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web