[Interest] Drawing push button
Igor Mironchik
igor.mironchik at gmail.com
Thu Sep 24 09:49:02 CEST 2015
Hi,
in my app on iOS fonts looks correct enstead of on QMenuBar and on my
custom button. I wrote about problem with QMenuBar before (look at my
previous letter).
But now I want to ask about QStylePainter. My custom button class uses
following drawing code:
QStylePainter p(this);
QStyleOptionButton opt;
opt.initFrom(this);
if (isFlat())
opt.features |= QStyleOptionButton::Flat;
opt.text = text();
p.drawControl(QStyle::CE_PushButton, opt);
But font looks as ugly as on QMenuBar. How to fix it? Thank you.
More information about the Interest
mailing list