tools/templates/pixlabel.h
author cherrotluo
Tue, 31 Jan 2012 22:04:41 -0500
changeset 6617 c61a4f68e6e9
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
chinese update

#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>

class PixLabel : public QLabel
{
	Q_OBJECT

public:

	PixLabel();
	QList<QRect> rects;

public slots:
	void AddRect();

private:
	void paintEvent(QPaintEvent * event);
	void mousePressEvent(QMouseEvent * e);
};