author | Wuzzy <almikes@aol.com> |
Wed, 19 Apr 2017 22:10:12 +0200 | |
changeset 12290 | 4ce7cb441c75 |
parent 8442 | 535a00ca0d35 |
permissions | -rw-r--r-- |
359 | 1 |
#include <QLabel> |
2 |
#include <QRect> |
|
3 |
#include <QList> |
|
4 |
#include <QMouseEvent> |
|
5 |
||
6 |
class PixLabel : public QLabel |
|
7 |
{ |
|
8442 | 8 |
Q_OBJECT |
359 | 9 |
|
10 |
public: |
|
11 |
||
8442 | 12 |
PixLabel(); |
13 |
QList<QRect> rects; |
|
359 | 14 |
|
15 |
public slots: |
|
8442 | 16 |
void AddRect(); |
359 | 17 |
|
18 |
private: |
|
8442 | 19 |
void paintEvent(QPaintEvent * event); |
20 |
void mousePressEvent(QMouseEvent * e); |
|
359 | 21 |
}; |