78 return QSize(extent, extent);
91 #endif // QT_NO_TOOLBAR The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
QStyle::State state
the style flags that are used when drawing the control
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0
Returns the value of the given pixel metric.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStyleOption class stores the parameters used by QStyle functions.
void initFrom(const QWidget *w)
virtual void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const =0
Draws the given primitive element with the provided painter using the style options specified by opti...
QObject * parent() const
Returns a pointer to the parent object.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QPaintEvent class contains event parameters for paint events.