author | Wuzzy <almikes@aol.com> |
Sat, 19 Nov 2016 15:00:14 +0100 | |
changeset 11914 | c9bad8a01185 |
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 |
}; |