Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .-----.
- | Phy |
- `-----´
- void MyWidget::drawIcon(QPainter *painter, QPoint pos) {
- QPixmap pixmap = icon.pixmap(QSize(22, 22),
- isEnabled() ? QIcon::Normal
- : QIcon::Disabled,
- isChecked() ? QIcon::On
- : QIcon::Off);
- painter->drawPixmap(pos, pixmap);
- }
Add Comment
Please, Sign In to add comment