Warning, file /include/QtGui/qbitmap.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004 #ifndef QBITMAP_H
0005 #define QBITMAP_H
0006
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtGui/qpixmap.h>
0009
0010 QT_BEGIN_NAMESPACE
0011
0012
0013 class QVariant;
0014
0015 class Q_GUI_EXPORT QBitmap : public QPixmap
0016 {
0017 public:
0018 QBitmap();
0019 #if QT_DEPRECATED_SINCE(6, 0)
0020 QT_DEPRECATED_VERSION_X_6_0("Use fromPixmap instead.") explicit QBitmap(const QPixmap &);
0021 #endif
0022 QBitmap(int w, int h);
0023 explicit QBitmap(const QSize &);
0024 explicit QBitmap(const QString &fileName, const char *format = nullptr);
0025 ~QBitmap() override;
0026
0027 #if QT_DEPRECATED_SINCE(6, 0)
0028 QT_DEPRECATED_VERSION_X_6_0("Use fromPixmap instead.") QBitmap &operator=(const QPixmap &);
0029 #endif
0030 inline void swap(QBitmap &other) { QPixmap::swap(other); }
0031 operator QVariant() const;
0032
0033 inline void clear() { fill(Qt::color0); }
0034
0035 static QBitmap fromImage(const QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor);
0036 static QBitmap fromImage(QImage &&image, Qt::ImageConversionFlags flags = Qt::AutoColor);
0037 static QBitmap fromData(const QSize &size, const uchar *bits,
0038 QImage::Format monoFormat = QImage::Format_MonoLSB);
0039 static QBitmap fromPixmap(const QPixmap &pixmap);
0040
0041 QBitmap transformed(const QTransform &matrix) const;
0042
0043 typedef QExplicitlySharedDataPointer<QPlatformPixmap> DataPtr;
0044 };
0045 Q_DECLARE_SHARED(QBitmap)
0046
0047 QT_END_NAMESPACE
0048
0049 #endif