![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickcommonstyle.h>
Public Member Functions | |
QCommonStyle () | |
~QCommonStyle () override | |
void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override |
void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p) const override |
\reimp | |
void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override |
QRect | subElementRect (SubElement r, const QStyleOption *opt) const override |
QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc) const override |
\reimp | |
QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override |
QFont | font (ControlElement element, const QStyle::State state) const override |
QMargins | ninePatchMargins (ControlElement ce, const QStyleOption *opt, const QSize &imageSize) const override |
QMargins | ninePatchMargins (ComplexControl cc, const QStyleOptionComplex *opt, const QSize &imageSize) const override |
int | pixelMetric (PixelMetric m, const QStyleOption *opt=nullptr) const override |
int | styleHint (StyleHint sh, const QStyleOption *opt=nullptr, QStyleHintReturn *shret=nullptr) const override |
QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *opt=nullptr) const override |
QPixmap | standardPixmap (StandardPixmap sp, const QStyleOption *opt=nullptr) const override |
QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override |
\reimp | |
SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt) const override |
\reimp | |
Public Member Functions inherited from QQC2::QStyle | |
QStyle () | |
Constructs a style object. | |
virtual | ~QStyle () |
Destroys the style object. | |
virtual QRect | itemTextRect (const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const |
Returns the area within the given rectangle in which to draw the provided text according to the specified font metrics and alignment. | |
virtual QRect | itemPixmapRect (const QRect &r, int flags, const QPixmap &pixmap) const |
Returns the area within the given rectangle in which to draw the specified pixmap according to the defined alignment. | |
virtual void | drawItemText (QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const |
Draws the given text in the specified rectangle using the provided painter and palette. | |
virtual void | drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const |
Draws the given pixmap in the specified rectangle, according to the specified alignment, using the provided painter. | |
virtual QPalette | standardPalette () const |
Returns the style's standard palette. | |
virtual void | polish () |
const QStyle * | proxy () const |
virtual void | handleThemeChange () |
Public Member Functions inherited from QObject | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | isQmlObjectType () const |
Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership(). | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
bool | moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL) |
Changes the thread affinity for this object and its children and returns true on success. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
void | killTimer (Qt::TimerId id) |
template<typename T> | |
T | findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T> | |
QList< T > | findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. | |
template<typename T> | |
T | findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<typename T> | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false . |
Protected Member Functions | |
QCommonStyle (QCommonStylePrivate &dd) | |
Protected Member Functions inherited from QQC2::QStyle | |
QStyle (QStylePrivate &dd) | |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) |
Definition at line 16 of file qquickcommonstyle.h.
QCommonStyle::QCommonStyle | ( | ) |
Definition at line 73 of file qquickcommonstyle.cpp.
|
override |
Definition at line 81 of file qquickcommonstyle.cpp.
|
protected |
Definition at line 77 of file qquickcommonstyle.cpp.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 2939 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionToolButton::HasMenu, QQC2::QStyleOptionGroupBox::lineWidth, QQC2::QStyleOptionSlider::maximum, QQC2::QStyleOptionGroupBox::midLineWidth, QQC2::QStyleOptionSlider::minimum, QQC2::QStyleOption::operator=(), QQC2::QStyleOptionSlider::pageStep, QQC2::QStyleOptionSlider::singleStep, QQC2::QStyle::sliderPositionFromValue(), QQC2::QStyle::State_Enabled, QQC2::QStyle::State_HasFocus, QQC2::QStyle::State_MouseOver, QQC2::QStyle::State_On, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Sunken, QQC2::QStyleOptionSpinBox::StepDownEnabled, QQC2::QStyleOptionSpinBox::stepEnabled, QQC2::QStyleOptionSpinBox::StepUpEnabled, QQC2::QStyleOptionSlider::tickInterval, QQC2::QStyleOptionSlider::tickPosition, QQC2::QStyleOptionSlider::TicksAbove, and QQC2::QStyleOptionSlider::TicksBelow.
|
overridevirtual |
\reimp
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 1128 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionToolButton::Arrow, QQC2::QStyleOptionButton::AutoDefaultButton, QQC2::QStyleOptionButton::CommandLinkButton, QQC2::QStyleOptionComboBox::editable, QQC2::QStyleOptionButton::Flat, QQC2::QStyleOptionButton::HasMenu, QQC2::QStyleOptionProgressBar::invertedAppearance, QQC2::QStyleOptionToolBar::lineWidth, QQC2::QStyleOptionProgressBar::maximum, QQC2::QStyleOptionToolBar::midLineWidth, QQC2::QStyleOptionProgressBar::minimum, QQC2::QStyleOptionHeader::None, QQC2::QStyleOption::operator=(), QQC2::QStyleOptionProgressBar::progress, QQC2::QStyle::proxy(), QQC2::QStyleOptionRubberBand::Rectangle, QQC2::QStyleOptionRubberBand::shape, QQC2::QStyleOptionHeader::sortIndicator, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_HasFocus, QQC2::QStyle::State_Horizontal, QQC2::QStyle::State_MouseOver, QQC2::QStyle::State_None, QQC2::QStyle::State_On, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Selected, QQC2::QStyle::State_Sunken, and QQC2::QStyleOptionProgressBar::textVisible.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 84 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionTabBarBase::shape, QQC2::QStyleOptionHeader::SortDown, QQC2::QStyleOptionHeader::sortIndicator, QQC2::QStyleOptionHeader::SortUp, QQC2::QStyle::State_Children, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_Horizontal, QQC2::QStyle::State_Item, QQC2::QStyle::State_NoChange, QQC2::QStyle::State_On, QQC2::QStyle::State_Open, QQC2::QStyle::State_Selected, QQC2::QStyle::State_Sibling, and QQC2::QStyle::State_Sunken.
|
overridevirtual |
Implements QQC2::QStyle.
Definition at line 4747 of file qquickcommonstyle.cpp.
|
overridevirtual |
\reimp
Implements QQC2::QStyle.
Definition at line 6059 of file qquickcommonstyle.cpp.
References QQC2::qt_intensity().
|
overridevirtual |
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 4762 of file qquickcommonstyle.cpp.
|
overridevirtual |
Implements QQC2::QStyle.
Definition at line 4754 of file qquickcommonstyle.cpp.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 4190 of file qquickcommonstyle.cpp.
References QQC2::QStyle::State_Window, QQC2::QStyleOptionSlider::tickPosition, QQC2::QStyleOptionSlider::TicksAbove, and QQC2::QStyleOptionSlider::TicksBothSides.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 4531 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionButton::AutoDefaultButton, QQC2::QStyleOptionSpinBox::buttonSymbols, QQC2::QStyleOptionMenuItem::maxIconWidth, QQC2::QStyleOptionMenuItem::menuHasCheckableItems, QQC2::QStyleOptionMenuItem::menuItemType, QQC2::QStyleOptionSpinBox::NoButtons, QQC2::QStyleOptionHeader::None, QQC2::QStyleOptionMenuItem::Separator, and QQC2::QStyleOptionHeader::sortIndicator.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 5493 of file qquickcommonstyle.cpp.
References QQC2::QStyle::proxy().
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 5129 of file qquickcommonstyle.cpp.
References QQC2::critical_xpm, QQC2::dock_widget_close_xpm, QQC2::filedialog_end_xpm, QQC2::filedialog_start_xpm, QQC2::information_xpm, QQC2::qt_close_xpm, QQC2::qt_help_xpm, QQC2::qt_maximize_xpm, QQC2::qt_minimize_xpm, QQC2::qt_normalizeup_xpm, QQC2::qt_shade_xpm, QQC2::qt_unshade_xpm, QQC2::question_xpm, QQC2::tb_extension_arrow_h_xpm, QQC2::tb_extension_arrow_v_xpm, and QQC2::warning_xpm.
|
overridevirtual |
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 4770 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionTabBarBase::North, QQC2::QStyleOptionRubberBand::Rectangle, QQC2::QStyleOptionTabBarBase::RightSide, and QQC2::QStyleOptionRubberBand::shape.
|
overridevirtual |
\reimp
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 3738 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionSpinBox::buttonSymbols, QQC2::QStyleOptionSlider::maximum, QQC2::QStyleOptionToolButton::MenuButtonPopup, QQC2::QStyleOptionSlider::minimum, QQC2::QStyleOptionSpinBox::NoButtons, QQC2::QStyleOptionSlider::pageStep, QQC2::QStyleOptionToolButton::PopupDelay, QQC2::QStyleOptionSlider::sliderPosition, QQC2::QStyle::sliderPositionFromValue(), and QQC2::QStyleOptionSlider::upsideDown.
|
overridevirtual |
we need to access the widget here because the style option doesn't
Implements QQC2::QStyle.
Reimplemented in QQC2::QWindowsStyle, and QQC2::QWindowsXPStyle.
Definition at line 2191 of file qquickcommonstyle.cpp.
References QQC2::QStyleOptionButton::AutoDefaultButton, QQC2::QStyleOptionComboBox::frame, QQC2::QStyleOptionToolBar::Movable, QQC2::QStyleOptionHeader::None, QQC2::QStyleOptionHeader::sortIndicator, QQC2::QStyle::State_Horizontal, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Selected, QQC2::QStyle::State_Sunken, and QQC2::QStyleOptionProgressBar::textVisible.