hi,
i subclassed QPushButton for a widget i'm using and i'm having problems getting the whole button to show. when the button is drawn the "ends" are missing. i've tried changing the scale and translation with no luck. i have looked at the docs trying to figure which if i'm clipping by mistake in orientation. here's the code with no geometry set:
void pb: : paintEvent(QPaintEvent *)
{
QStyleOptionButton option;
option.initFrom(this);
QStylePainter p(this);
p.scale(1.0, 8.50);
p.translate(0,50);
p.rotate(-90);
p.drawControl(QStyle::CE_PushButton, option);
}
thanks in advance.