Hi, what you need is QStyle::drawControl() with QStyle::CE_PushButton. Further you need to calculate the rect parameter of the QStyleOption yourself. For that use QStyle::pixelMetric() with QStyle::PM_ButtonMargin, QStyle::PM_DefaultFrameWidth, QStyle::PM_LayoutLeftMargin, ...
Bookmarks