![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtWidgets More...
#include <qwidget_p.h>
Inherits QObjectPrivate.
Inherited by QAbstractButtonPrivate, QAbstractSliderPrivate, QAbstractSpinBoxPrivate, QCalendarWidgetPrivate, QCalendarWidgetPrivate, QColumnViewGripPrivate, QComboBoxPrivate, QDialogButtonBoxPrivate, QDialogPrivate, QDockWidgetPrivate, QFocusFramePrivate, QFocusFramePrivate, QFramePrivate, QGroupBoxPrivate, QGroupBoxPrivate, QKeySequenceEditPrivate, QLineEditPrivate, QMainWindowPrivate, QMainWindowPrivate, QMdiSubWindowPrivate, QMenuBarPrivate, QMenuPrivate, QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, QPrintPreviewWidgetPrivate, QPrintPreviewWidgetPrivate, QProgressBarPrivate, QProgressBarPrivate, QQuickWidgetPrivate, QRhiWidgetPrivate, QRubberBandPrivate, QRubberBandPrivate, QSizeGripPrivate, QSizeGripPrivate, QSplashScreenPrivate, QSplashScreenPrivate, QSplitterHandlePrivate, QStatusBarPrivate, QStatusBarPrivate, QSvgWidgetPrivate, QSvgWidgetPrivate, QTabBarPrivate, QTabWidgetPrivate, QTabWidgetPrivate, QToolBarPrivate, QWindowContainerPrivate, QWindowContainerPrivate, QWizardPagePrivate, and QWizardPagePrivate.
Classes | |
| struct | TextureData |
Public Types | |
| enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
| enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
| enum class | WindowHandleMode { Direct , Closest , TopLevel } |
| enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
| enum class | FocusDirection { Previous , Next } |
| enum class | FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
| static QWidgetPrivate * | get (QWidget *w) |
| static const QWidgetPrivate * | get (const QWidget *w) |
| static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
| static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
| static QWidget * | parentGraphicsView (const QWidget *widget) |
| static QRect | screenGeometry (const QWidget *widget) |
| static QRect | availableScreenGeometry (const QWidget *widget) |
| static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static void | sendComposeStatus (QWidget *w, bool end) |
| static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
| static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
| static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| static void | deleteInOwnThread (QObject *object) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
| static QWidgetMapper * | mapper = nullptr |
| static QWidgetSet * | allWidgets = nullptr |
| static int | instanceCounter = 0 |
| static int | maxInstances = 0 |
\inmodule QtWidgets
Definition at line 183 of file qwidget_p.h.
| Enumerator | |
|---|---|
| CloseNoEvent | |
| CloseWithEvent | |
| CloseWithSpontaneousEvent | |
Definition at line 341 of file qwidget_p.h.
| Enumerator | |
|---|---|
| DirectionNorth | |
| DirectionEast | |
| DirectionSouth | |
| DirectionWest | |
Definition at line 204 of file qwidget_p.h.
| Enumerator | |
|---|---|
| DrawAsRoot | |
| DrawPaintOnScreen | |
| DrawRecursive | |
| DrawInvisible | |
| DontSubtractOpaqueChildren | |
| DontDrawOpaqueChildren | |
| DontDrawNativeChildren | |
| DontSetCompositionMode | |
| UseEffectRegionBounds | |
Definition at line 190 of file qwidget_p.h.
|
strong |
| Enumerator | |
|---|---|
| EnsureFocusOut | |
| AssertConsistency | |
Definition at line 752 of file qwidget_p.h.
|
strong |
| Enumerator | |
|---|---|
| Previous | |
| Next | |
Definition at line 747 of file qwidget_p.h.
|
strong |
| Enumerator | |
|---|---|
| Direct | |
| Closest | |
| TopLevel | |
Definition at line 231 of file qwidget_p.h.
|
explicit |
Definition at line 106 of file qwidget.cpp.
| QWidgetPrivate::~QWidgetPrivate | ( | ) |
Definition at line 178 of file qwidget.cpp.
| QWindow * QWidgetPrivate::_q_closestWindowHandle | ( | ) | const |
Used by clients outside of widgets to get a handle to the closest QWindow without having to link to widgets.
Definition at line 1025 of file qwidget.cpp.
| void QWidgetPrivate::_q_showIfNotHidden | ( | ) |
Definition at line 8451 of file qwidget.cpp.
|
inlinevirtual |
Definition at line 435 of file qwidget_p.h.
| void QWidgetPrivate::activateChildLayoutsRecursively | ( | ) |
Definition at line 8005 of file qwidget.cpp.
| QSize QWidgetPrivate::adjustedSize | ( | ) | const |
Definition at line 8749 of file qwidget.cpp.
Definition at line 822 of file qwidget.cpp.
| void QWidgetPrivate::adjustQuitOnCloseAttribute | ( | ) |
Definition at line 12346 of file qwidget.cpp.
| QScreen * QWidgetPrivate::associatedScreen | ( | ) | const |
Definition at line 1030 of file qwidget.cpp.
Definition at line 479 of file qwidget_p.h.
|
inlinestatic |
Definition at line 503 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 611 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 613 of file qwidget_p.h.
|
static |
Check a if restoredGeometry fits into availableGeometry This method is used to verify that a widget is restored to a geometry, which fits into the target screen.
| frameHeight | represents the height of the widget's title bar, which is expected to be on its top. |
If the size of restoredGeometry exceeds availableGeometry, its height and width will be resized to be two pixels smaller than availableGeometry. An exact match would be full screen.
If at least one edge of restoredGeometry is outside availableGeometry, restoredGeometry will be moved \list
Definition at line 7439 of file qwidget.cpp.
| QWidget * QWidgetPrivate::childAt_helper | ( | const QPointF & | p, |
| bool | ignoreChildrenInDestructor ) const |
Definition at line 10471 of file qwidget.cpp.
| QWidget * QWidgetPrivate::childAtRecursiveHelper | ( | const QPointF & | p, |
| bool | ignoreChildrenInDestructor ) const |
Definition at line 10481 of file qwidget.cpp.
| QRect QWidgetPrivate::clipRect | ( | ) | const |
Definition at line 1865 of file qwidget.cpp.
| QRegion QWidgetPrivate::clipRegion | ( | ) | const |
Definition at line 1889 of file qwidget.cpp.
Definition at line 2104 of file qwidget.cpp.
| bool QWidgetPrivate::close | ( | ) |
Definition at line 8635 of file qwidget.cpp.
| QWidget * QWidgetPrivate::closestParentWidgetWithWindowHandle | ( | ) | const |
Returns the closest parent widget that has a QWindow window handle
Definition at line 986 of file qwidget.cpp.
| void QWidgetPrivate::create | ( | ) |
Definition at line 1226 of file qwidget.cpp.
| void QWidgetPrivate::createExtra | ( | ) |
Creates the widget extra data.
Definition at line 1628 of file qwidget.cpp.
| void QWidgetPrivate::createRecursively | ( | ) |
Definition at line 956 of file qwidget.cpp.
| void QWidgetPrivate::createSysExtra | ( | ) |
Definition at line 1657 of file qwidget.cpp.
| void QWidgetPrivate::createTLExtra | ( | ) |
Definition at line 1594 of file qwidget.cpp.
| void QWidgetPrivate::createTLSysExtra | ( | ) |
Definition at line 1389 of file qwidget.cpp.
| void QWidgetPrivate::createWinId | ( | ) |
Definition at line 2370 of file qwidget.cpp.
| void QWidgetPrivate::deactivateWidgetCleanup | ( | ) |
Definition at line 2306 of file qwidget.cpp.
| QWidget * QWidgetPrivate::deepestFocusProxy | ( | ) | const |
A focus proxy can have its own focus proxy, which can have its own proxy, and so on. This helper function returns the widget that sits at the bottom of the proxy chain, and therefore the one that should normally get focus if this widget receives a focus request.
Definition at line 6646 of file qwidget.cpp.
| void QWidgetPrivate::deleteExtra | ( | ) |
Deletes the widget extra data.
Definition at line 1666 of file qwidget.cpp.
| void QWidgetPrivate::deleteSysExtra | ( | ) |
Definition at line 1683 of file qwidget.cpp.
| void QWidgetPrivate::deleteTLSysExtra | ( | ) |
Definition at line 1687 of file qwidget.cpp.
| noFurtherThan. |
Definition at line 13591 of file qwidget.cpp.
| void QWidgetPrivate::drawWidget | ( | QPaintDevice * | pdev, |
| const QRegion & | rgn, | ||
| const QPoint & | offset, | ||
| DrawWidgetFlags | flags, | ||
| QPainter * | sharedPainter = nullptr, | ||
| QWidgetRepaintManager * | repaintManager = nullptr ) |
Definition at line 5472 of file qwidget.cpp.
|
inline |
Definition at line 445 of file qwidget_p.h.
Definition at line 550 of file qwidget_p.h.
Definition at line 545 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 612 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 614 of file qwidget_p.h.
|
inline |
Definition at line 525 of file qwidget_p.h.
|
inline |
Definition at line 865 of file qwidget_p.h.
| void QWidgetPrivate::fixPosIncludesFrame | ( | ) |
Definition at line 7190 of file qwidget.cpp.
|
overridevirtual |
Reimplemented from QObjectPrivate.
Definition at line 13133 of file qwidget.cpp.
|
virtual |
Definition at line 6881 of file qwidget.cpp.
| QRect QWidgetPrivate::frameStrut | ( | ) | const |
Definition at line 12208 of file qwidget.cpp.
|
inlinestatic |
Definition at line 217 of file qwidget_p.h.
|
inlinestatic |
Definition at line 216 of file qwidget_p.h.
| void QWidgetPrivate::getLayoutItemMargins | ( | int * | left, |
| int * | top, | ||
| int * | right, | ||
| int * | bottom ) const |
Definition at line 12294 of file qwidget.cpp.
| const QRegion & QWidgetPrivate::getOpaqueChildren | ( | ) | const |
Definition at line 1977 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, QQuickWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 610 of file qwidget_p.h.
| bool QWidgetPrivate::handleClose | ( | CloseMode | mode | ) |
For windows, this is called from the QWidgetWindow::handleCloseEvent implementation, which QWidget::close indirectly calls by closing the QWindow. mode will be CloseWithEvent if QWidgetWindow::handleCloseEvent is called indirectly by QWindow::close, and CloseWithSpontaneousEvent if the close event originates from the system (i.e. the user clicked the close button in the title bar).
QDialog calls this method directly in its hide() implementation, which might be called from the QDialog::closeEvent override. mode will be set to CloseNoEvent to prevent recursion.
For non-windows, this is called directly by QWidget::close, and mode will be CloseWithEvent.
The function is also called by the QWidget destructor, with mode set to CloseNoEvent.
Definition at line 8565 of file qwidget.cpp.
|
inline |
Definition at line 567 of file qwidget_p.h.
|
inline |
Definition at line 561 of file qwidget_p.h.
| bool QWidgetPrivate::hasChildWithFocusPolicy | ( | Qt::FocusPolicy | policy, |
| const QWidget * | excludeChildrenOf = nullptr ) const |
true, if a child with| policy | exists and isn't a child of |
| excludeChildrenOf. | Return false otherwise. |
Definition at line 13203 of file qwidget.cpp.
| void QWidgetPrivate::hide_helper | ( | ) |
Definition at line 8199 of file qwidget.cpp.
| void QWidgetPrivate::hide_sys | ( | ) |
Definition at line 8252 of file qwidget.cpp.
| void QWidgetPrivate::hideChildren | ( | bool | spontaneous | ) |
Definition at line 8496 of file qwidget.cpp.
| void QWidgetPrivate::inheritStyle | ( | ) |
Definition at line 2693 of file qwidget.cpp.
Definition at line 870 of file qwidget.cpp.
| void QWidgetPrivate::initFocusChain | ( | ) |
Initialises the focus chain by making the widget point to itself.
Definition at line 13341 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 631 of file qwidget_p.h.
|
static |
Convenience override to insert a QWidgetList
| toBeInserted | into the focus chain before or after |
| position,depending | on |
| direction. |
true, if the insertion has changed the focus chain, otherwise false. | toBeInserted | must be a consistent focus chain. |
Definition at line 13474 of file qwidget.cpp.
| bool QWidgetPrivate::insertIntoFocusChain | ( | FocusDirection | direction, |
| QWidget * | position ) |
Inserts a widget into the focus chain before or after
| position,depending | on |
| direction. |
true, if the insertion has changed the focus chain, otherwise false. Definition at line 13423 of file qwidget.cpp.
|
inline |
Definition at line 768 of file qwidget_p.h.
|
inline |
Definition at line 766 of file qwidget_p.h.
| template Q_AUTOTEST_EXPORT void QWidgetPrivate::invalidateBackingStore< QRect > | ( | const T & | ) |
Invalidates the r (in widget's coordinates) of the backing store, i.e. all widgets intersecting with the region will be repainted when the backing store is synced.
Definition at line 115 of file qwidgetrepaintmanager.cpp.
| void QWidgetPrivate::invalidateBackingStore_resizeHelper | ( | const QPoint & | oldPos, |
| const QSize & | oldSize ) |
Invalidates the backing store when the widget is resized.
Static areas are never invalidated unless absolutely needed.
Definition at line 1219 of file qwidgetrepaintmanager.cpp.
| bool QWidgetPrivate::isAboutToShow | ( | ) | const |
The graphicsEffect function returns a pointer to the widget's graphics effect.
If the widget has no graphics effect, \nullptr is returned.
The setGraphicsEffect function is for setting the widget's graphics effect.
Sets effect as the widget's effect. If there already is an effect installed on this widget, QWidget will delete the existing effect before installing the new effect.
If effect is the installed effect on a different widget, setGraphicsEffect() will remove the effect from the widget and install it on this widget.
QWidget takes ownership of effect.
Definition at line 5336 of file qwidget.cpp.
| bool QWidgetPrivate::isExplicitlyHidden | ( | ) | const |
Definition at line 8445 of file qwidget.cpp.
| bool QWidgetPrivate::isFocusChainConsistent | ( | ) | const |
A focus chain is consistent, when it is circular: Following the chain in either direction has to return to the beginning. This is why a newly constructed widget points to itself, when the focus chain has been initialized. A newly constructed widget is considered to have a consistent focus chain, while not being part of a focus chain.
The method always returns true, when the logging category "qt.widgets.focus" is disabled. When it is enabled, the method returns true early, if a widget is pointing to itself. It returns false, if one of the following is detected: \list
true, if none of the above is observed.Definition at line 13669 of file qwidget.cpp.
| bool QWidgetPrivate::isInFocusChain | ( | ) | const |
true, if the widget is part of a focus chain and false otherwise. A widget is considered to be part of a focus chain, neither FOCUS_NEXT, nor FOCUS_PREV are pointing to the widget itself.true for all of those widgets, even if they represent an inconsistent focus chain. Definition at line 13641 of file qwidget.cpp.
|
inline |
Definition at line 363 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 641 of file qwidget_p.h.
| QFont QWidgetPrivate::localFont | ( | ) | const |
Returns a font suitable for inheritance, where only locally set attributes are considered resolved.
Definition at line 4770 of file qwidget.cpp.
| void QWidgetPrivate::lower_sys | ( | ) |
Definition at line 12112 of file qwidget.cpp.
Definition at line 584 of file qwidget_p.h.
Definition at line 590 of file qwidget_p.h.
Definition at line 581 of file qwidget_p.h.
Definition at line 587 of file qwidget_p.h.
|
inline |
Definition at line 911 of file qwidget_p.h.
|
inline |
Definition at line 876 of file qwidget_p.h.
Definition at line 382 of file qwidgetrepaintmanager.cpp.
|
inline |
Definition at line 540 of file qwidget_p.h.
Definition at line 4724 of file qwidget.cpp.
| QPalette QWidgetPrivate::naturalWidgetPalette | ( | QPalette::ResolveMask | inheritedMask | ) | const |
Returns the palette that the widget w inherits from its ancestors and QApplication::palette. inheritedMask is the combination of the widget's ancestors palette request masks (i.e., which attributes from the parent widget's palette are implicitly imposed on this widget by the user). Note that this font does not take into account the palette set on w itself.
Definition at line 4577 of file qwidget.cpp.
| QWidget * QWidgetPrivate::nextPrevElementInFocusChain | ( | FocusDirection | direction | ) | const |
| direction,irrespective | of focus proxies or widgets with Qt::NoFocus. |
Definition at line 13293 of file qwidget.cpp.
Definition at line 1704 of file qwidget.cpp.
| void QWidgetPrivate::paintBackground | ( | QPainter * | painter, |
| const QRegion & | rgn, | ||
| DrawWidgetFlags | flags = DrawAsRoot ) const |
Definition at line 2261 of file qwidget.cpp.
Definition at line 1764 of file qwidget.cpp.
| void QWidgetPrivate::paintSiblingsRecursive | ( | QPaintDevice * | pdev, |
| const QObjectList & | children, | ||
| int | index, | ||
| const QRegion & | rgn, | ||
| const QPoint & | offset, | ||
| DrawWidgetFlags | flags, | ||
| QPainter * | sharedPainter, | ||
| QWidgetRepaintManager * | repaintManager ) |
Definition at line 5741 of file qwidget.cpp.
Definition at line 456 of file qwidget_p.h.
|
inline |
Definition at line 895 of file qwidget_p.h.
| QRegion QWidgetPrivate::prepareToRender | ( | const QRegion & | region, |
| QWidget::RenderFlags | renderFlags ) |
Definition at line 5350 of file qwidget.cpp.
| void QWidgetPrivate::propagatePaletteChange | ( | ) |
Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows).
Definition at line 1829 of file qwidget.cpp.
| void QWidgetPrivate::raise_sys | ( | ) |
Definition at line 12062 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QDialogPrivate.
Definition at line 438 of file qwidget_p.h.
|
inline |
Definition at line 515 of file qwidget_p.h.
| bool QWidgetPrivate::removeFromFocusChain | ( | FocusChainRemovalRules | rules = FocusChainRemovalRules(), |
| FocusDirection | direction = FocusDirection::Next ) |
Removes a widget from the focus chain, respecting the flags set in
| rules. | \list
|
| direction. |
|
true if the widget has been removed, otherwise false. Definition at line 13310 of file qwidget.cpp.
| void QWidgetPrivate::render | ( | QPaintDevice * | target, |
| const QPoint & | targetOffset, | ||
| const QRegion & | sourceRegion, | ||
| QWidget::RenderFlags | renderFlags ) |
Definition at line 5669 of file qwidget.cpp.
| void QWidgetPrivate::render_helper | ( | QPainter * | painter, |
| const QPoint & | targetOffset, | ||
| const QRegion & | sourceRegion, | ||
| QWidget::RenderFlags | renderFlags ) |
Definition at line 5408 of file qwidget.cpp.
| void QWidgetPrivate::repaint | ( | T | t | ) |
Definition at line 11230 of file qwidget.cpp.
| void QWidgetPrivate::reparentFocusChildren | ( | FocusDirection | direction | ) |
Reads QWidget children, which are not part of a focus chain yet. Inserts them into the focus chain before or after the widget, depending on
| direction | and in the order of their creation. This is used, when QWidget::setParent() causes a widget to change toplevel windows. |
Definition at line 13356 of file qwidget.cpp.
Moves the relevant subwidgets of this widget from the oldtlw's tab chain to that of the new parent, if there's anything to move and we're really moving
This function is called from QWidget::reparent() after the widget has been reparented.
Definition at line 7121 of file qwidget.cpp.
Definition at line 11064 of file qwidget.cpp.
| void QWidgetPrivate::reparentWidgetWindows | ( | QWidget * | parentWithWindow, |
| Qt::WindowFlags | windowFlags = {} ) |
Definition at line 11034 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 635 of file qwidget_p.h.
| void QWidgetPrivate::resolveFont | ( | ) |
Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). Then propagate this font to this widget's children.
Definition at line 4785 of file qwidget.cpp.
| void QWidgetPrivate::resolveLayoutDirection | ( | ) |
Definition at line 4877 of file qwidget.cpp.
| void QWidgetPrivate::resolveLocale | ( | ) |
Definition at line 5952 of file qwidget.cpp.
| void QWidgetPrivate::resolvePalette | ( | ) |
Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). Then propagate this palette to this widget's children.
Definition at line 4621 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 637 of file qwidget_p.h.
|
inline |
Definition at line 522 of file qwidget_p.h.
| QRhi * QWidgetPrivate::rhi | ( | ) | const |
Definition at line 967 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, QQuickWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 595 of file qwidget_p.h.
| QMargins QWidgetPrivate::safeAreaMargins | ( | ) | const |
Definition at line 7725 of file qwidget.cpp.
|
inlinestatic |
Definition at line 484 of file qwidget_p.h.
Definition at line 474 of file qwidget_p.h.
|
inlinestatic |
Definition at line 498 of file qwidget_p.h.
| void QWidgetPrivate::scroll_sys | ( | int | dx, |
| int | dy ) |
Definition at line 11120 of file qwidget.cpp.
Definition at line 11161 of file qwidget.cpp.
| void QWidgetPrivate::scrollChildren | ( | int | dx, |
| int | dy ) |
Definition at line 190 of file qwidget.cpp.
Definition at line 459 of file qwidgetrepaintmanager.cpp.
Definition at line 12359 of file qwidget.cpp.
Definition at line 5659 of file qwidget.cpp.
| void QWidgetPrivate::sendPendingMoveAndResizeEvents | ( | bool | recursive = false, |
| bool | disableUpdates = false ) |
Definition at line 7973 of file qwidget.cpp.
| void QWidgetPrivate::setConstraints_sys | ( | ) |
Definition at line 3936 of file qwidget.cpp.
Definition at line 5000 of file qwidget.cpp.
| void QWidgetPrivate::setDirtyOpaqueRegion | ( | ) |
Definition at line 1954 of file qwidget.cpp.
| void QWidgetPrivate::setEnabled_helper | ( | bool | enable | ) |
Definition at line 3387 of file qwidget.cpp.
| void QWidgetPrivate::setFocus_sys | ( | ) |
Definition at line 6666 of file qwidget.cpp.
Definition at line 280 of file qwidget_p.h.
| void QWidgetPrivate::setGeometry_sys | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| bool | isMove ) |
Definition at line 7258 of file qwidget.cpp.
| void QWidgetPrivate::setLayoutDirection_helper | ( | Qt::LayoutDirection | direction | ) |
Definition at line 4859 of file qwidget.cpp.
| void QWidgetPrivate::setLayoutItemMargins | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom ) |
Definition at line 12306 of file qwidget.cpp.
| void QWidgetPrivate::setLayoutItemMargins | ( | QStyle::SubElement | element, |
| const QStyleOption * | opt = nullptr ) |
Definition at line 12322 of file qwidget.cpp.
Definition at line 5913 of file qwidget.cpp.
Definition at line 13073 of file qwidget.cpp.
| bool QWidgetPrivate::setMaximumSize_helper | ( | int & | maxw, |
| int & | maxh ) |
Definition at line 3991 of file qwidget.cpp.
| bool QWidgetPrivate::setMinimumSize_helper | ( | int & | minw, |
| int & | minh ) |
Definition at line 3903 of file qwidget.cpp.
| void QWidgetPrivate::setModal_sys | ( | ) |
Definition at line 2812 of file qwidget.cpp.
| void QWidgetPrivate::setNetWmWindowTypes | ( | bool | skipIfMissing = false | ) |
Definition at line 13152 of file qwidget.cpp.
| void QWidgetPrivate::setOpaque | ( | bool | opaque | ) |
Definition at line 2183 of file qwidget.cpp.
Definition at line 4628 of file qwidget.cpp.
Definition at line 10935 of file qwidget.cpp.
|
inline |
Definition at line 508 of file qwidget_p.h.
|
inline |
Definition at line 615 of file qwidget_p.h.
| bool QWidgetPrivate::setScreen | ( | QScreen * | screen | ) |
Ensures that the widget's QWindow is set to be on the given screen. Returns true if the screen was changed.
Definition at line 2420 of file qwidget.cpp.
| bool QWidgetPrivate::setScreenForPoint | ( | const QPoint & | pos | ) |
Ensures that the widget is set on the screen point is on. This is handy getting a correct size hint before a resize in e.g QMenu and QToolTip. Returns if the screen was changed.
Definition at line 2405 of file qwidget.cpp.
Definition at line 888 of file qwidget_p.h.
Definition at line 2646 of file qwidget.cpp.
| void QWidgetPrivate::setSystemClip | ( | QPaintEngine * | paintEngine, |
| qreal | devicePixelRatio, | ||
| const QRegion & | region ) |
Definition at line 1926 of file qwidget.cpp.
|
inline |
Definition at line 616 of file qwidget_p.h.
| void QWidgetPrivate::setUpdatesEnabled_helper | ( | bool | enable | ) |
Definition at line 1800 of file qwidget.cpp.
|
virtual |
Reimplemented in QColorDialogPrivate, QColorDialogPrivate, QDialogPrivate, QErrorMessagePrivate, QErrorMessagePrivate, QFileDialogPrivate, QFontDialogPrivate, QMdiSubWindowPrivate, QMessageBoxPrivate, and QMessageBoxPrivate.
Definition at line 8335 of file qwidget.cpp.
Definition at line 13125 of file qwidget.cpp.
Definition at line 6303 of file qwidget.cpp.
Definition at line 6319 of file qwidget.cpp.
|
virtual |
Implemented in QWidgetPrivate so that QMdiSubWindowPrivate can reimplement it.
Reimplemented in QMdiSubWindowPrivate.
Definition at line 10591 of file qwidget.cpp.
| void QWidgetPrivate::setWindowIcon_helper | ( | ) |
Definition at line 6188 of file qwidget.cpp.
| void QWidgetPrivate::setWindowIcon_sys | ( | ) |
Definition at line 6233 of file qwidget.cpp.
Definition at line 6088 of file qwidget.cpp.
Definition at line 6095 of file qwidget.cpp.
| void QWidgetPrivate::setWindowModified_helper | ( | ) |
Definition at line 11693 of file qwidget.cpp.
Definition at line 11646 of file qwidget.cpp.
Definition at line 6053 of file qwidget.cpp.
Definition at line 6060 of file qwidget.cpp.
| void QWidgetPrivate::setWinId | ( | WId | id | ) |
Definition at line 1574 of file qwidget.cpp.
| void QWidgetPrivate::setWSGeometry | ( | ) |
Definition at line 212 of file qwidget.cpp.
|
inline |
Definition at line 881 of file qwidget_p.h.
| bool QWidgetPrivate::shouldDiscardSyncRequest | ( | ) | const |
Definition at line 668 of file qwidgetrepaintmanager.cpp.
| bool QWidgetPrivate::shouldPaintOnScreen | ( | ) | const |
Definition at line 2129 of file qwidget.cpp.
| void QWidgetPrivate::show_helper | ( | ) |
Definition at line 8035 of file qwidget.cpp.
| void QWidgetPrivate::show_recursive | ( | ) |
Makes the widget visible in the isVisible() meaning of the word. It is only called for toplevels or widgets with visible parents.
Definition at line 7955 of file qwidget.cpp.
| void QWidgetPrivate::show_sys | ( | ) |
Definition at line 8119 of file qwidget.cpp.
| void QWidgetPrivate::showChildren | ( | bool | spontaneous | ) |
Definition at line 8458 of file qwidget.cpp.
Definition at line 12159 of file qwidget.cpp.
| bool QWidgetPrivate::stealKeyboardGrab | ( | bool | grab | ) |
Definition at line 12787 of file qwidget.cpp.
| bool QWidgetPrivate::stealMouseGrab | ( | bool | grab | ) |
Definition at line 12738 of file qwidget.cpp.
Definition at line 2007 of file qwidget.cpp.
| void QWidgetPrivate::subtractOpaqueSiblings | ( | QRegion & | source, |
| bool * | hasDirtySiblingsAbove = nullptr, | ||
| bool | alsoNonOpaque = false ) const |
Definition at line 2018 of file qwidget.cpp.
| void QWidgetPrivate::syncBackingStore | ( | ) |
Definition at line 1745 of file qwidget.cpp.
Definition at line 1755 of file qwidget.cpp.
|
static |
Removes the part from the focus chain starting with
| from | and ending with |
| to,in |
param direction.
Definition at line 13560 of file qwidget.cpp.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, QQuickWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 603 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, QOpenGLWidgetPrivate, QQuickWidgetPrivate, and QRhiWidgetPrivate.
Definition at line 604 of file qwidget_p.h.
|
inlinevirtual |
Reimplemented in QOpenGLWidgetPrivate, and QOpenGLWidgetPrivate.
Definition at line 642 of file qwidget_p.h.
|
inline |
Definition at line 870 of file qwidget_p.h.
| void QWidgetPrivate::unsetCursor_sys | ( | ) |
Definition at line 5020 of file qwidget.cpp.
| void QWidgetPrivate::update | ( | T | t | ) |
Definition at line 11295 of file qwidget.cpp.
Definition at line 2244 of file qwidget.cpp.
| void QWidgetPrivate::updateContentsRect | ( | ) |
Definition at line 7679 of file qwidget.cpp.
| void QWidgetPrivate::updateFocusChild | ( | ) |
Definition at line 6686 of file qwidget.cpp.
Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. implicitMask is the union of all ancestor widgets' font request masks, and determines which attributes from this widget's font should propagate.
Definition at line 4801 of file qwidget.cpp.
| void QWidgetPrivate::updateFrameStrut | ( | ) |
Definition at line 12225 of file qwidget.cpp.
| void QWidgetPrivate::updateGeometry_helper | ( | bool | forceUpdate | ) |
Definition at line 10508 of file qwidget.cpp.
| void QWidgetPrivate::updateIsOpaque | ( | ) |
Definition at line 2144 of file qwidget.cpp.
| void QWidgetPrivate::updateIsTranslucent | ( | ) |
Definition at line 2191 of file qwidget.cpp.
| void QWidgetPrivate::updateSystemBackground | ( | ) |
Definition at line 4641 of file qwidget.cpp.
Definition at line 219 of file qwidget.cpp.
| QWindow * QWidgetPrivate::windowHandle | ( | WindowHandleMode | mode = WindowHandleMode::Direct | ) | const |
Definition at line 995 of file qwidget.cpp.
Definition at line 716 of file qwidget_p.h.
|
static |
Definition at line 671 of file qwidget_p.h.
| QPalette::ColorRole QWidgetPrivate::bg_role |
Definition at line 725 of file qwidget_p.h.
| signed char QWidgetPrivate::bottomLayoutItemMargin |
Definition at line 707 of file qwidget_p.h.
| short QWidgetPrivate::bottommargin |
Definition at line 703 of file qwidget_p.h.
| uint QWidgetPrivate::childrenHiddenByWState |
Definition at line 741 of file qwidget_p.h.
| uint QWidgetPrivate::childrenShownByExpose |
Definition at line 742 of file qwidget_p.h.
| QWidgetData QWidgetPrivate::data |
Definition at line 711 of file qwidget_p.h.
| uint QWidgetPrivate::directFontResolveMask |
Definition at line 696 of file qwidget_p.h.
| decltype(std::declval<QPalette>().resolveMask()) QWidgetPrivate::directPaletteResolveMask |
Definition at line 698 of file qwidget_p.h.
| QRegion QWidgetPrivate::dirty |
Definition at line 678 of file qwidget_p.h.
| uint QWidgetPrivate::dirtyOpaqueChildren |
Definition at line 726 of file qwidget_p.h.
| uint QWidgetPrivate::dontSetExplicitShowHide |
Definition at line 743 of file qwidget_p.h.
| std::unique_ptr<QWExtra> QWidgetPrivate::extra |
Definition at line 652 of file qwidget_p.h.
| QPaintEngine* QWidgetPrivate::extraPaintEngine |
Definition at line 660 of file qwidget_p.h.
| QPalette::ColorRole QWidgetPrivate::fg_role |
Definition at line 724 of file qwidget_p.h.
| QWidget* QWidgetPrivate::focus_child |
Definition at line 655 of file qwidget_p.h.
| QWidget* QWidgetPrivate::focus_next |
Definition at line 653 of file qwidget_p.h.
| QWidget* QWidgetPrivate::focus_prev |
Definition at line 654 of file qwidget_p.h.
| QMap<Qt::GestureType, Qt::GestureFlags> QWidgetPrivate::gestureContext |
Definition at line 719 of file qwidget_p.h.
| QGraphicsEffect* QWidgetPrivate::graphicsEffect |
Definition at line 662 of file qwidget_p.h.
| Qt::HANDLE QWidgetPrivate::hd |
Definition at line 710 of file qwidget_p.h.
| uint QWidgetPrivate::high_attributes[4] |
Definition at line 723 of file qwidget_p.h.
| Qt::InputMethodHints QWidgetPrivate::imHints |
Definition at line 673 of file qwidget_p.h.
| uint QWidgetPrivate::inDirtyList |
Definition at line 729 of file qwidget_p.h.
| uint QWidgetPrivate::inheritedFontResolveMask |
Definition at line 697 of file qwidget_p.h.
| QPalette::ResolveMask QWidgetPrivate::inheritedPaletteResolveMask |
Definition at line 699 of file qwidget_p.h.
| uint QWidgetPrivate::inheritsInputMethodHints |
Definition at line 737 of file qwidget_p.h.
| uint QWidgetPrivate::inheritStyleRecursionGuard |
Definition at line 744 of file qwidget_p.h.
|
static |
Definition at line 708 of file qwidget_p.h.
| uint QWidgetPrivate::isMoved |
Definition at line 731 of file qwidget_p.h.
| uint QWidgetPrivate::isOpaque |
Definition at line 727 of file qwidget_p.h.
| uint QWidgetPrivate::isScrolled |
Definition at line 730 of file qwidget_p.h.
| QLayout* QWidgetPrivate::layout |
Definition at line 656 of file qwidget_p.h.
| signed char QWidgetPrivate::leftLayoutItemMargin |
Definition at line 704 of file qwidget_p.h.
| short QWidgetPrivate::leftmargin |
Definition at line 700 of file qwidget_p.h.
| QLocale QWidgetPrivate::locale |
Definition at line 713 of file qwidget_p.h.
|
static |
Definition at line 670 of file qwidget_p.h.
|
static |
Definition at line 709 of file qwidget_p.h.
| uint QWidgetPrivate::mustHaveWindowHandle |
Definition at line 733 of file qwidget_p.h.
| QRegion* QWidgetPrivate::needsFlush |
Definition at line 657 of file qwidget_p.h.
| QRegion QWidgetPrivate::opaqueChildren |
Definition at line 677 of file qwidget_p.h.
|
mutable |
Definition at line 661 of file qwidget_p.h.
| QPaintDevice* QWidgetPrivate::redirectDev |
Definition at line 658 of file qwidget_p.h.
| QPoint QWidgetPrivate::redirectOffset |
Definition at line 714 of file qwidget_p.h.
| uint QWidgetPrivate::renderToTexture |
Definition at line 734 of file qwidget_p.h.
| uint QWidgetPrivate::renderToTextureReallyDirty |
Definition at line 739 of file qwidget_p.h.
| uint QWidgetPrivate::retainSizeWhenHiddenChanged |
Definition at line 728 of file qwidget_p.h.
| signed char QWidgetPrivate::rightLayoutItemMargin |
Definition at line 706 of file qwidget_p.h.
| short QWidgetPrivate::rightmargin |
Definition at line 702 of file qwidget_p.h.
| QSizePolicy QWidgetPrivate::size_policy |
Definition at line 712 of file qwidget_p.h.
| uint QWidgetPrivate::textureChildSeen |
Definition at line 735 of file qwidget_p.h.
| signed char QWidgetPrivate::topLayoutItemMargin |
Definition at line 705 of file qwidget_p.h.
| short QWidgetPrivate::topmargin |
Definition at line 701 of file qwidget_p.h.
| uint QWidgetPrivate::usesDoubleBufferedGLContext |
Definition at line 732 of file qwidget_p.h.
| uint QWidgetPrivate::usesRhiFlush |
Definition at line 740 of file qwidget_p.h.
| QWidgetItemV2* QWidgetPrivate::widgetItem |
Definition at line 659 of file qwidget_p.h.