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.
See also ColorMode and Qt::ImageConversionFlag.
Constructs a pixmap from the QImage image.
See also fromImage().
Use the static function QPixmap::fromImage() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the static function QPixmap::fromImage() instead.
Use toImage() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the load() function that takes a Qt::ImageConversionFlag instead.
See also ColorMode and Qt::ImageConversionFlag.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the loadFromData() function that takes a Qt::ImageConversionFlag instead.
See also ColorMode and Qt::ImageConversionFlag.
Use the QPixmap constructor that takes two ints and pass w and h.
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. It behaves essentially like the above function.
Use the QPixmap constructor that takes a QSize and pass it size.
For example, if you have code like
pixmap.resize(size);
you can rewrite it as
pixmap = QPixmap(size);
Use transform() instead.
Returns the pixmap as a QImage.
This automatic conversion is disabled when QT3_SUPPORT is not defined. Use toImage() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Converts the image image to a pixmap that is assigned to this pixmap. Returns a reference to the pixmap.
See also fromImage().
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.0 | |
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