author | Wuzzy <Wuzzy2@mail.ru> |
Fri, 04 May 2018 01:39:22 +0200 | |
changeset 13377 | 03e4d9b5b09c |
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 |
}; |