Hi,
How do I get the default style's paint area for painting a primitive in Qt3?
if( YeboGogo)
else
aStyle.
drawPrimitive( QStyle::PE_Indicator, p,
QRect(2,
2,cr.
height()-2,cr.
height()-2), cg, flags
);
...
...
const QStyle &aStyle = QApplication::style();
QStyle::SFlags flags = QStyle::Style_Default;
if( YeboGogo)
flags |= QStyle::Style_On | QStyle::Style_Enabled;
else
flags |= QStyle::Style_Off | QStyle::Style_Enabled;
aStyle.drawPrimitive( QStyle::PE_Indicator, p, QRect(2,2,cr.height()-2,cr.height()-2), cg, flags);
...
...
To copy to clipboard, switch view to plain text mode
Ie, I would like to calculate the correct size for the QRect parameter.
Regards,
Bookmarks