Qt 3 Support Members for QPixmapThe 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 Types
Public Functions
Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QPixmap::Auto | 0 | Select Color or Mono on a case-by-case basis. |
QPixmap::Color | 1 | Always create colored pixmaps. |
QPixmap::Mono | 2 | Always create bitmaps. |
Use the constructor that takes a Qt::ImageConversionFlag instead.
Constructs a pixmap from the QImage image.
Use the static fromImage() function instead.
Use the static fromImage() function instead.
This is an overloaded member function, provided for convenience.
Use the static fromImage() function instead.
Use the toImage() function instead.
This is an overloaded member function, provided for convenience.
Use the load() function that takes a Qt::ImageConversionFlag instead.
This is an overloaded member function, provided for convenience.
Use the loadFromData() function that takes a Qt::ImageConversionFlag instead.
Use the QPixmap constructor that takes two ints (width and height) instead.
For example, if you have code like
pixmap.resize(10, 20);
you can rewrite it as
pixmap = QPixmap(10, 20);
This is an overloaded member function, provided for convenience.
Use the QPixmap constructor that takes a QSize (size) instead.
For example, if you have code like
pixmap.resize(size);
you can rewrite it as
pixmap = QPixmap(size);
Returns whether the pixmap is its own mask or not.
This function is no longer relevant since the concept of self masking doesn't exists anymore.
Use transformed() instead.
Returns the pixmap as a QImage.
Use the toImage() function instead.
This is an overloaded member function, provided for convenience.
Converts the given image to a pixmap that is assigned to this pixmap.
Use the static fromImage() function 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.3 | |
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 ! |
Copyright © 2000-2012 - www.developpez.com