| 123456789101112131415161718192021222324 |
- #ifndef BMPWIDGET_H
- #define BMPWIDGET_H
- #include <QWidget>
- #include <QScopedPointer>
- class BmpWidgetPrivate;
- class BmpWidget : public QWidget
- {
- Q_OBJECT
- Q_DISABLE_COPY(BmpWidget)
- public:
- explicit BmpWidget(QWidget *parent = NULL);
- ~BmpWidget();
- void setBackgroundBmpPath(const QString &path);
- void setBackgroundBmpImage(QImage& image, const QString& path);
- protected:
- void styleChange();
- void paintEvent(QPaintEvent* event);
- private:
- QScopedPointer<BmpWidgetPrivate> m_Private;
- };
- #endif // BMPWIDGET_H
|