1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqtwidget.h
tianduanrui 3f857669fc init
2016-12-29 16:49:18 +08:00

37 lines
617 B
C++
Executable File

#ifndef QPICWIDGET_H
#define QPICWIDGET_H
#include <QWidget>
namespace Ui {
class QQTWidget;
}
class QQTWidget : public QWidget
{
Q_OBJECT
public:
explicit QQTWidget(QWidget *parent = 0);
~QQTWidget();
enum {
QQTCENTER,
QQTTILEDWIDTH,
QQTTILEDHEIGHT,
QQTZOOMWIDTH,
QQTZOOMHEIGHT,
};
void setPixmap(QString pic = QString());
void setType(quint32 type = 0) { m_type = type; }
private:
Ui::QQTWidget *ui;
QString m_pic;
quint32 m_type;
// QWidget interface
protected:
void paintEvent(QPaintEvent *);
};
#endif // QPICWIDGET_H