Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "dalle.h"
- Dalle::Dalle()
- {
- but = QPixmap::fromImage(QImage("but.png").scaled(20, 20));
- setPos(100,100);
- }
- QRectF Dalle::boundingRect() const
- {
- return QRectF(100,100,50,50);
- }
- void Dalle::paint(QPainter *painter, const QStyleOptionGraphicsItem *,
- QWidget *)
- {
- painter->drawPixmap(0,0,but);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement