Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void paint(QPainter *painter,const QStyleOptionGraphicsItem *option,QWidget *widget)
- {
- painter->save();
- if(isSelected())
- {
- painter->setPen(Qt::PenStyle::CustomDashLine);
- painter->drawRect(boundingRect());
- }
- else
- {
- painter->restore();
- }
- }
Add Comment
Please, Sign In to add comment