55 if (tristate && noChange)
84 #ifdef QT_KEYPAD_NAVIGATION
85 if (
widget->hasEditFocus())
86 state |= QStyle::State_HasEditFocus;
112 fropt.QStyleOption::operator=(*btn);
113 fropt.
rect = subElementRect(SE_CheckBoxFocusRect,
btn,
widget);
QPixmap pixmap(const QSize &size, Mode mode=Normal, State state=Off) const
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QRect class defines a rectangle in the plane using integer precision.
constexpr void setRight(int pos) noexcept
constexpr void setLeft(int pos) noexcept
constexpr int left() const noexcept
constexpr int right() const noexcept
constexpr int width() const noexcept
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
@ State_KeyboardFocusChange
the palette that should be used when painting the control
void initFrom(const QWidget *w)
Qt::LayoutDirection direction
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
drawPrimitive(PE_IndicatorCheckBox, &subopt, p, widget)
QStyleOptionButton subopt
[2]
p drawControl(QStyle::CE_CheckBox, opt)
const QStyleOptionButton * btn
[3]
GLdouble GLdouble GLdouble GLdouble q