23 QStyleOptionButton option;
24 option.initFrom(
this);
25 option.state = isDown() ? QStyle::State_Sunken : QStyle::State_Raised;
27 option.features |= QStyleOptionButton::DefaultButton;
31 QPainter painter(
this);
32 style()->drawControl(QStyle::CE_PushButton, &option, &painter,
this);