author | alfadur |
Wed, 10 Oct 2018 23:54:57 +0300 | |
changeset 13894 | 7984ed53ac3b |
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 |
}; |