随笔分类 -  一天一QT

摘要:iconeditor.h 1 #ifndef ICONEDITOR_H 2 #define ICONEDITOR_H 3 4 #include <QColor> 5 #include <QImage> 6 #include <QWidget> 7 8 class IconEditor : public QWidget 9 {10 Q_OBJECT11 Q_PROPERTY(QColor penColor READ penColor WRITE setPenColor)12 Q_PROPERTY(QImage iconImage READ iconImage 阅读全文
posted @ 2012-12-17 22:25 永不指步 阅读(362) 评论(0) 推荐(0)
摘要:hexspinbox.h 1 #ifndef HEXSPINBOX_H 2 #define HEXSPINBOX_H 3 4 #include <QSpinBox> 5 6 class QRegExpValidator; //正则表达式验证器 validator验证器 7 8 class HexSpinBox : public QSpinBox 9 {10 Q_OBJECT11 public:12 HexSpinBox(QWidget *parent = 0); 13 14 protected:15 QValidator::State validate(QStri... 阅读全文
posted @ 2012-12-15 21:54 永不指步 阅读(317) 评论(0) 推荐(0)