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.
Use the toImage() function instead.
Use the load() function that takes a Qt::ImageConversionFlag instead.
Use the loadFromData() function that takes a Qt::ImageConversionFlag instead.
Use QPixmap::copy() instead to get the pixmap with the new size.
For example, if you have code like
pixmap.resize(10, 20);
you can rewrite it as
pixmap = pixmap.copy(0, 0, 10, 20);
This is an overloaded function.
Use QPixmap::copy() instead to get the pixmap with the new size.
For example, if you have code like
pixmap.resize(size);
you can rewrite it as
pixmap = pixmap.copy(QRect(QPoint(0, 0), 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 function.
Converts the given image to a pixmap that is assigned to this pixmap.
Use the static fromImage() function instead.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.