8 if (tristate && noChange)
37#ifdef QT_KEYPAD_NAVIGATION
38 if (
widget->hasEditFocus())
39 state |= QStyle::State_HasEditFocus;
65 fropt.QStyleOption::operator=(*btn);
66 fropt.
rect = subElementRect(SE_CheckBoxFocusRect,
btn,
widget);
bool isNull() const
Returns true if the icon is empty; otherwise returns false.
QPixmap pixmap(const QSize &size, Mode mode=Normal, State state=Off) const
Returns a pixmap with the requested size, mode, and state, generating one if necessary.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
constexpr void setRight(int pos) noexcept
Sets the right edge of the rectangle to the given x coordinate.
constexpr void setLeft(int pos) noexcept
Sets the left edge of the rectangle to the given x coordinate.
constexpr int left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr int right() const noexcept
Returns the x-coordinate of the rectangle's right edge.
constexpr int width() const noexcept
Returns the width.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
\variable QStyleOption::palette
void initFrom(const QWidget *w)
Qt::LayoutDirection direction
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
@ State_KeyboardFocusChange
drawPrimitive(PE_IndicatorCheckBox, &subopt, p, widget)
QStyleOptionButton subopt
[2]
p drawControl(QStyle::CE_CheckBox, opt)
const QStyleOptionButton * btn
[3]
GLdouble GLdouble GLdouble GLdouble q