Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWidgetPrivate Class Reference

#include <qwidget_p.h>

+ Inheritance diagram for QWidgetPrivate:
+ Collaboration diagram for QWidgetPrivate:

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 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (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 Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
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)
 

Public Attributes

std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 

Detailed Description

Definition at line 178 of file qwidget_p.h.

Member Enumeration Documentation

◆ CloseMode

Enumerator
CloseNoEvent 
CloseWithEvent 
CloseWithSpontaneousEvent 

Definition at line 334 of file qwidget_p.h.

◆ Direction

Enumerator
DirectionNorth 
DirectionEast 
DirectionSouth 
DirectionWest 

Definition at line 199 of file qwidget_p.h.

◆ DrawWidgetFlag

Enumerator
DrawAsRoot 
DrawPaintOnScreen 
DrawRecursive 
DrawInvisible 
DontSubtractOpaqueChildren 
DontDrawOpaqueChildren 
DontDrawNativeChildren 
DontSetCompositionMode 
UseEffectRegionBounds 

Definition at line 185 of file qwidget_p.h.

◆ WindowHandleMode

Enumerator
Direct 
Closest 
TopLevel 

Definition at line 224 of file qwidget_p.h.

Constructor & Destructor Documentation

◆ QWidgetPrivate()

QWidgetPrivate::QWidgetPrivate ( int  version = QObjectPrivateVersion)
explicit

◆ ~QWidgetPrivate()

QWidgetPrivate::~QWidgetPrivate ( )

Definition at line 174 of file qwidget.cpp.

References deleteExtra(), extra, QWidgetItem::wid, and widgetItem.

+ Here is the call graph for this function:

Member Function Documentation

◆ _q_closestWindowHandle()

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 1058 of file qwidget.cpp.

References Closest, and windowHandle().

+ Here is the call graph for this function:

◆ _q_showIfNotHidden()

void QWidgetPrivate::_q_showIfNotHidden ( )

Definition at line 8451 of file qwidget.cpp.

References Qt::WA_WState_ExplicitShowHide.

◆ aboutToDestroy()

virtual void QWidgetPrivate::aboutToDestroy ( )
inlinevirtual

Definition at line 432 of file qwidget_p.h.

◆ activateChildLayoutsRecursively()

void QWidgetPrivate::activateChildLayoutsRecursively ( )

Definition at line 8022 of file qwidget.cpp.

References QLayout::activate(), activateChildLayoutsRecursively(), QList< T >::at(), child, QObjectData::children, i, layout, qobject_cast< QWidget * >(), sendPendingMoveAndResizeEvents(), QList< T >::size(), and Qt::WA_WState_Visible.

Referenced by activateChildLayoutsRecursively().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adjustedSize()

QSize QWidgetPrivate::adjustedSize ( ) const

Definition at line 8727 of file qwidget.cpp.

References QLayout::expandingDirections(), extra, QScreen::geometry, QLayoutItem::hasHeightForWidth(), Qt::Horizontal, layout, maybeTopData(), QGuiApplication::primaryScreen, qMax(), qMin(), screen, QGuiApplication::screenAt(), QSize::setHeight(), QRect::setWidth(), QLayout::totalHeightForWidth(), and Qt::Vertical.

+ Here is the call graph for this function:

◆ adjustFlags()

void QWidgetPrivate::adjustFlags ( Qt::WindowFlags &  flags,
QWidget w = nullptr 
)
static

◆ adjustQuitOnCloseAttribute()

void QWidgetPrivate::adjustQuitOnCloseAttribute ( )

Definition at line 12315 of file qwidget.cpp.

References Qt::Dialog, Qt::SubWindow, Qt::WA_QuitOnClose, Qt::Widget, and Qt::Window.

Referenced by init(), and setWindowFlags().

+ Here is the caller graph for this function:

◆ associatedScreen()

QScreen * QWidgetPrivate::associatedScreen ( ) const

Definition at line 1063 of file qwidget.cpp.

References Closest, window(), and windowHandle().

Referenced by QMainWindowLayout::hover().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ availableScreenGeometry() [1/2]

static QRect QWidgetPrivate::availableScreenGeometry ( const QWidget widget)
inlinestatic

Definition at line 468 of file qwidget_p.h.

References widget.

Referenced by QFontComboBox::event(), QWidgetResizeHandler::mouseMoveEvent(), QSizeGrip::mousePressEvent(), QComboBoxPrivate::popupGeometry(), and QMenuPrivate::popupGeometry().

+ Here is the caller graph for this function:

◆ availableScreenGeometry() [2/2]

static QRect QWidgetPrivate::availableScreenGeometry ( const QWidget widget,
const QPoint globalPosition,
bool  hasPosition = true 
)
inlinestatic

Definition at line 492 of file qwidget_p.h.

References QScreen::availableGeometry, screen, and widget.

◆ beginBackingStorePainting()

virtual void QWidgetPrivate::beginBackingStorePainting ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 600 of file qwidget_p.h.

Referenced by drawWidget().

+ Here is the caller graph for this function:

◆ beginCompose()

virtual void QWidgetPrivate::beginCompose ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 602 of file qwidget_p.h.

Referenced by sendComposeStatus().

+ Here is the caller graph for this function:

◆ checkRestoredGeometry()

void QWidgetPrivate::checkRestoredGeometry ( const QRect availableGeometry,
QRect restoredGeometry,
int  frameHeight 
)
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.

Parameters
frameHeightrepresents 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

  • down if its top is off screen
  • up if its bottom is off screen
  • right if its left edge is off screen
  • left if its right edge is off screen \endlist

Definition at line 7472 of file qwidget.cpp.

References QRect::adjusted(), QRect::bottom(), QRect::contains(), QRect::height(), QRect::left(), QRect::moveBottom(), QRect::moveLeft(), QRect::moveRight(), QRect::moveTop(), QRect::right(), QRect::setHeight(), QRect::setWidth(), QRect::top(), and QRect::width().

Referenced by QWidget::restoreGeometry().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ childAt_helper()

QWidget * QWidgetPrivate::childAt_helper ( const QPoint p,
bool  ignoreChildrenInDestructor 
) const

Definition at line 10461 of file qwidget.cpp.

References childAtRecursiveHelper(), QObjectData::children, QList< T >::isEmpty(), and pointInsideRectAndMask().

+ Here is the call graph for this function:

◆ childAtRecursiveHelper()

QWidget * QWidgetPrivate::childAtRecursiveHelper ( const QPoint p,
bool  ignoreChildrenInDestructor 
) const

Definition at line 10471 of file qwidget.cpp.

References QList< T >::at(), child, QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), and Qt::WA_TransparentForMouseEvents.

Referenced by childAt_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clipRect()

QRect QWidgetPrivate::clipRect ( ) const

Definition at line 1872 of file qwidget.cpp.

References effectiveRectFor().

Referenced by QAbstractItemView::doAutoScroll(), drawWidget(), findTextureWidgetsRecursively(), invalidateBackingStore(), moveRect(), QFocusFrame::paintEvent(), paintOnScreen(), scrollRect(), QWidgetRepaintManager::staticContents(), and subtractOpaqueChildren().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clipRegion()

QRegion QWidgetPrivate::clipRegion ( ) const

Definition at line 1896 of file qwidget.cpp.

References QObjectData::children, i, qobject_cast< QWidget * >(), qRectIntersects(), QList< T >::size(), and QWidget::x.

+ Here is the call graph for this function:

◆ clipToEffectiveMask()

void QWidgetPrivate::clipToEffectiveMask ( QRegion region) const

Definition at line 2111 of file qwidget.cpp.

References QWidgetData::crect, data, extra, graphicsEffect, and QRect::topLeft().

Referenced by paintOnScreen(), and QWidgetRepaintManager::staticContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ close()

bool QWidgetPrivate::close ( )

Definition at line 8613 of file qwidget.cpp.

References CloseWithEvent, handleClose(), and windowHandle().

Referenced by QDialogPrivate::close(), QDockWidgetPrivate::init(), QDateTimeEditPrivate::initCalendarPopup(), and show_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

◆ createExtra()

void QWidgetPrivate::createExtra ( )

Creates the widget extra data.

Definition at line 1615 of file qwidget.cpp.

References createSysExtra(), extra, qDebug, and QWIDGETSIZE_MAX.

Referenced by createTLExtra(), paintOnScreen(), setMaximumSize_helper(), setMinimumSize_helper(), and setStyle_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createRecursively()

void QWidgetPrivate::createRecursively ( )

Definition at line 1018 of file qwidget.cpp.

References QList< T >::at(), child, QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), and Qt::WA_WState_Created.

Referenced by show_recursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSysExtra()

void QWidgetPrivate::createSysExtra ( )

Definition at line 1644 of file qwidget.cpp.

Referenced by createExtra().

+ Here is the caller graph for this function:

◆ createTLExtra()

void QWidgetPrivate::createTLExtra ( )

Definition at line 1582 of file qwidget.cpp.

References createExtra(), extra, and qDebug.

Referenced by QWindowContainer::parentWasChanged(), and topData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createTLSysExtra()

void QWidgetPrivate::createTLSysExtra ( )

Definition at line 1377 of file qwidget.cpp.

References extra, QVariant::isValid(), qt_window_private(), QWIDGETSIZE_MAX, QWindowPrivate::setAutomaticPositionAndResizeEnabled(), updateIsTranslucent(), and Qt::WA_NativeWindow.

Referenced by create(), and QWindowContainer::parentWasChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createWinId()

void QWidgetPrivate::createWinId ( )

Definition at line 2377 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, createWinId(), i, QObjectData::parent, qobject_cast< QWidget * >(), QList< T >::size(), Qt::WA_DontCreateNativeAncestors, Qt::WA_NativeWindow, and Qt::WA_WState_Created.

Referenced by createWinId(), and QMenuPrivate::popup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deactivateWidgetCleanup()

void QWidgetPrivate::deactivateWidgetCleanup ( )

Definition at line 2313 of file qwidget.cpp.

References QApplication::activeWindow(), qt_button_down, and QApplicationPrivate::setActiveWindow().

Referenced by hide_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deepestFocusProxy()

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 6623 of file qwidget.cpp.

References QWidget::focusProxy().

Referenced by focusObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteExtra()

void QWidgetPrivate::deleteExtra ( )

Deletes the widget extra data.

Definition at line 1653 of file qwidget.cpp.

References deleteSysExtra(), deleteTLSysExtra(), extra, proxy, and qt_styleSheet().

Referenced by ~QWidgetPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteSysExtra()

void QWidgetPrivate::deleteSysExtra ( )

Definition at line 1671 of file qwidget.cpp.

Referenced by deleteExtra().

+ Here is the caller graph for this function:

◆ deleteTLSysExtra()

void QWidgetPrivate::deleteTLSysExtra ( )

Definition at line 1683 of file qwidget.cpp.

References deleteBackingStore(), and extra.

Referenced by deleteExtra().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawWidget()

void QWidgetPrivate::drawWidget ( QPaintDevice pdev,
const QRegion rgn,
const QPoint offset,
DrawWidgetFlags  flags,
QPainter sharedPainter = nullptr,
QWidgetRepaintManager repaintManager = nullptr 
)

Definition at line 5452 of file qwidget.cpp.

References beginBackingStorePainting(), QRegion::boundingRect(), QObjectData::children, clipRect(), QPainter::CompositionMode_Source, context, QPainter::device(), QPaintDevice::devicePixelRatio(), DontSubtractOpaqueChildren, QGraphicsEffect::draw(), DrawAsRoot, DrawInvisible, DrawPaintOnScreen, DrawRecursive, endBackingStorePainting(), engine, QImage::Format_ARGB32_Premultiplied, QImage::Format_RGB32, grabFramebuffer(), graphicsEffect, QPainter::isActive(), QRegion::isEmpty(), QList< T >::isEmpty(), QGraphicsEffect::isEnabled(), isOpaque, QWidgetRepaintManager::markNeedsFlush(), paintBackground(), QPainter::paintEngine(), QPaintDevice::paintEngine(), paintSiblingsRecursive(), Q_ASSERT, Q_UNLIKELY, qCInfo, qDebug, qWarning, renderToTexture, renderToTextureReallyDirty, QPainter::restore(), restoreRedirected(), QPainter::save(), sendPaintEvent(), QColor::setAlphaF(), setRedirected(), setSystemClip(), sharedPainter(), shouldPaintOnScreen(), QList< T >::size(), QPainter::SmoothPixmapTransform, QGraphicsEffect::source(), QBrush::style(), subtractOpaqueChildren(), QPaintEngine::systemRect(), QBrush::texture(), Qt::TexturePattern, QPainter::translate(), Qt::transparent, UseEffectRegionBounds, Qt::WA_AlwaysStackOnTop, Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_StyledBackground, Qt::WA_TintedBackground, Qt::WA_WState_InPaintEvent, QPalette::Window, and QPainter::worldTransform().

Referenced by paintOnScreen(), paintSiblingsRecursive(), and render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ effectiveFocusWidget()

QWidget * QWidgetPrivate::effectiveFocusWidget ( )
inline

Definition at line 434 of file qwidget_p.h.

Referenced by setEnabled_helper().

+ Here is the caller graph for this function:

◆ effectiveRectFor() [1/2]

QRect QWidgetPrivate::effectiveRectFor ( const QRect rect) const
inline

Definition at line 539 of file qwidget_p.h.

References rect.

◆ effectiveRectFor() [2/2]

QRect QWidgetPrivate::effectiveRectFor ( const QRegion region) const
inline

Definition at line 534 of file qwidget_p.h.

References QRegion::boundingRect().

Referenced by clipRect(), invalidateBackingStore_resizeHelper(), lower_sys(), moveRect(), paintSiblingsRecursive(), raise_sys(), and stackUnder_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ endBackingStorePainting()

virtual void QWidgetPrivate::endBackingStorePainting ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 601 of file qwidget_p.h.

Referenced by drawWidget().

+ Here is the caller graph for this function:

◆ endCompose()

virtual void QWidgetPrivate::endCompose ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 603 of file qwidget_p.h.

Referenced by sendComposeStatus().

+ Here is the caller graph for this function:

◆ enforceNativeChildren()

void QWidgetPrivate::enforceNativeChildren ( )
inline

Definition at line 514 of file qwidget_p.h.

References child, i, qobject_cast< QWidget * >(), and Qt::WA_NativeWindow.

+ Here is the call graph for this function:

◆ extraData()

QWExtra * QWidgetPrivate::extraData ( ) const
inline

Definition at line 813 of file qwidget_p.h.

References extra.

◆ fixPosIncludesFrame()

void QWidgetPrivate::fixPosIncludesFrame ( )

Definition at line 7229 of file qwidget.cpp.

References maybeTopData(), updateFrameStrut(), and Qt::WA_DontShowOnScreen.

Referenced by create(), setConstraints_sys(), and show_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flagsForDumping()

std::string QWidgetPrivate::flagsForDumping ( ) const
overridevirtual

Reimplemented from QObjectPrivate.

Definition at line 13093 of file qwidget.cpp.

References QObjectPrivate::flagsForDumping(), and QApplication::focusWidget().

+ Here is the call graph for this function:

◆ focusObject()

QObject * QWidgetPrivate::focusObject ( )
virtual

Definition at line 6856 of file qwidget.cpp.

References deepestFocusProxy(), and proxy.

Referenced by QWidgetWindow::focusObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ frameStrut()

QRect QWidgetPrivate::frameStrut ( ) const

Definition at line 12040 of file qwidget.cpp.

References Qt::Desktop, QTLWExtra::frameStrut, maybeTopData(), updateFrameStrut(), Qt::WA_DontShowOnScreen, and Qt::WA_WState_Created.

+ Here is the call graph for this function:

◆ get() [1/2]

static const QWidgetPrivate * QWidgetPrivate::get ( const QWidget w)
inlinestatic

Definition at line 212 of file qwidget_p.h.

◆ get() [2/2]

◆ getLayoutItemMargins()

void QWidgetPrivate::getLayoutItemMargins ( int *  left,
int *  top,
int *  right,
int *  bottom 
) const

Definition at line 12263 of file qwidget.cpp.

References bottomLayoutItemMargin, leftLayoutItemMargin, rightLayoutItemMargin, and topLayoutItemMargin.

Referenced by QDialogButtonBoxPrivate::initLayout().

+ Here is the caller graph for this function:

◆ getOpaqueChildren()

const QRegion & QWidgetPrivate::getOpaqueChildren ( ) const

Definition at line 1984 of file qwidget.cpp.

References QList< T >::at(), child, QObjectData::children, dirtyOpaqueChildren, extra, QLayoutItem::geometry(), getOpaqueChildren(), i, isOpaque, opaqueChildren, qobject_cast< QWidget * >(), QList< T >::size(), and QRect::topLeft().

Referenced by getOpaqueChildren(), and subtractOpaqueChildren().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ grabFramebuffer()

virtual QImage QWidgetPrivate::grabFramebuffer ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate, and QQuickWidgetPrivate.

Definition at line 599 of file qwidget_p.h.

Referenced by drawWidget().

+ Here is the caller graph for this function:

◆ handleClose()

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 8545 of file qwidget.cpp.

References CloseNoEvent, CloseWithSpontaneousEvent, e, QPointer< T >::isNull(), QCoreApplication::sendEvent(), and Qt::WA_DeleteOnClose.

Referenced by close().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleSoftwareInputPanel() [1/2]

void QWidgetPrivate::handleSoftwareInputPanel ( bool  clickCausedFocus = false)
inline

Definition at line 556 of file qwidget_p.h.

References QGuiApplication::inputMethod(), qApp, QStyle::RSIP_OnMouseClick, QStyle::SH_RequestSoftwareInputPanel, and QInputMethod::show().

+ Here is the call graph for this function:

◆ handleSoftwareInputPanel() [2/2]

void QWidgetPrivate::handleSoftwareInputPanel ( Qt::MouseButton  button,
bool  clickCausedFocus 
)
inline

Definition at line 550 of file qwidget_p.h.

References button, and Qt::LeftButton.

Referenced by QGraphicsTextItem::mouseReleaseEvent().

+ Here is the caller graph for this function:

◆ hide_helper()

void QWidgetPrivate::hide_helper ( )

Definition at line 8216 of file qwidget.cpp.

References bypassGraphicsProxyWidget(), QApplication::focusWidget(), hide_sys(), hideChildren(), isEmbedded(), QWidget::isWindow(), maybeRepaintManager(), QWidget::parentWidget(), Qt::Popup, Q_UNUSED, qApp, QCoreApplication::sendEvent(), Qt::WA_Mapped, and Qt::WA_WState_Visible.

Referenced by setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hide_sys()

void QWidgetPrivate::hide_sys ( )

Definition at line 8269 of file qwidget.cpp.

References deactivateWidgetCleanup(), extra, QGuiApplicationPrivate::hideModalWindow(), invalidateBackingStore(), Qt::NonModal, QWidget::parentWidget(), QT_CONFIG, renderToTexture, Qt::WA_DontShowOnScreen, Qt::WA_Mapped, window(), and windowHandle().

Referenced by hide_helper(), and setGeometry_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hideChildren()

void QWidgetPrivate::hideChildren ( bool  spontaneous)

Definition at line 8483 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, e, i, QWidget::internalWinId(), QWidget::isWindow(), qApp, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QWidget::setAttribute(), QList< T >::size(), QWidget::testAttribute(), Qt::WA_DontCreateNativeAncestors, Qt::WA_Mapped, Qt::WA_UnderMouse, Qt::WA_WState_Hidden, Qt::WA_WState_Visible, widget, and QWidget::window().

Referenced by QWidgetWindow::handleExposeEvent(), and hide_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inheritStyle()

void QWidgetPrivate::inheritStyle ( )

Definition at line 2703 of file qwidget.cpp.

References extra, QObjectData::parent, proxy, Q_ASSERT, qApp, qt_styleSheet(), QStyleSheetStyle::ref(), setStyle_helper(), and Qt::WA_SetStyle.

+ Here is the call graph for this function:

◆ init()

◆ initializeViewportFramebuffer()

virtual void QWidgetPrivate::initializeViewportFramebuffer ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 620 of file qwidget_p.h.

◆ invalidateBackingStore()

template<class T >
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 116 of file qwidgetrepaintmanager.cpp.

References QTLWExtra::backingStore, QWidgetRepaintManager::BufferInvalid, clipRect(), QCoreApplication::closingDown(), extra, graphicsEffect, QRegion::isEmpty(), QTLWExtra::repaintManager, QWidgetRepaintManager::UpdateLater, and QTLWExtra::window.

Referenced by hide_sys(), invalidateBackingStore_resizeHelper(), moveRect(), scrollRect(), and show_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ invalidateBackingStore_resizeHelper()

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 1224 of file qwidgetrepaintmanager.cpp.

References QRect::contains(), dirty, effectiveRectFor(), extra, graphicsEffect, QSize::height(), invalidateBackingStore(), QRegion::isEmpty(), maybeRepaintManager(), moveRect(), Q_ASSERT, qMin(), QWidgetRepaintManager::staticContents(), Qt::WA_StaticContents, QSize::width(), QPoint::x(), QRect::x(), and QPoint::y().

Referenced by setGeometry_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAboutToShow()

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.

Since
4.6
See also
setGraphicsEffect()

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.

Note
This function will apply the effect on itself and all its children.
Graphics effects are not supported for OpenGL-based widgets, such as QGLWidget, QOpenGLWidget and QQuickWidget.
Since
4.6
See also
graphicsEffect()

Definition at line 5316 of file qwidget.cpp.

References QObjectData::parent.

Referenced by prepareToRender().

+ Here is the caller graph for this function:

◆ isOverlapped()

bool QWidgetPrivate::isOverlapped ( const QRect rect) const
inline

Definition at line 356 of file qwidget_p.h.

References rect.

Referenced by moveRect(), and scrollRect().

+ Here is the caller graph for this function:

◆ isStereoEnabled()

virtual bool QWidgetPrivate::isStereoEnabled ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 630 of file qwidget_p.h.

Referenced by QGraphicsView::setupViewport().

+ Here is the caller graph for this function:

◆ localFont()

QFont QWidgetPrivate::localFont ( ) const

Returns a font suitable for inheritance, where only locally set attributes are considered resolved.

Definition at line 4753 of file qwidget.cpp.

References directFontResolveMask, and QFont::setResolveMask().

Referenced by resolveFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lower_sys()

void QWidgetPrivate::lower_sys ( )

Definition at line 11944 of file qwidget.cpp.

References effectiveRectFor(), QWidget::parentWidget(), Q_ASSERT, setDirtyOpaqueRegion(), Qt::WA_NativeWindow, and Qt::WA_WState_Created.

+ Here is the call graph for this function:

◆ mapFromWS() [1/2]

QPoint QWidgetPrivate::mapFromWS ( const QPoint p) const
inline

Definition at line 573 of file qwidget_p.h.

◆ mapFromWS() [2/2]

QRect QWidgetPrivate::mapFromWS ( const QRect r) const
inline

Definition at line 579 of file qwidget_p.h.

References QRect::translated().

+ Here is the call graph for this function:

◆ mapToWS() [1/2]

QPoint QWidgetPrivate::mapToWS ( const QPoint p) const
inline

Definition at line 570 of file qwidget_p.h.

◆ mapToWS() [2/2]

QRect QWidgetPrivate::mapToWS ( const QRect r) const
inline

Definition at line 576 of file qwidget_p.h.

References QRect::translated().

+ Here is the call graph for this function:

◆ maybeRepaintManager()

QWidgetRepaintManager * QWidgetPrivate::maybeRepaintManager ( ) const
inline

Definition at line 850 of file qwidget_p.h.

References QTLWExtra::window.

Referenced by QOpenGLWidgetPrivate::ensureRhiDependentResources(), hide_helper(), QOpenGLWidgetPrivate::initialize(), QQuickWidgetPrivate::initializeWithRhi(), invalidateBackingStore_resizeHelper(), moveRect(), scrollRect(), syncBackingStore(), and syncBackingStore().

+ Here is the caller graph for this function:

◆ maybeTopData()

QTLWExtra * QWidgetPrivate::maybeTopData ( ) const
inline

Definition at line 824 of file qwidget_p.h.

References extra.

Referenced by adjustedSize(), fixPosIncludesFrame(), frameStrut(), shouldDiscardSyncRequest(), updateFrameStrut(), and windowHandle().

+ Here is the caller graph for this function:

◆ moveRect()

void QWidgetPrivate::moveRect ( const QRect rect,
int  dx,
int  dy 
)

Definition at line 379 of file qwidgetrepaintmanager.cpp.

References QWidgetRepaintManager::bltRect(), clipRect(), effectiveRectFor(), extra, get(), hasPlatformWindow(), QRect::intersected(), invalidateBackingStore(), QRegion::isEmpty(), isMoved, isOpaque, isOverlapped(), QRect::isValid(), QWidget::mapTo(), QWidgetRepaintManager::markDirty(), QWidgetRepaintManager::markNeedsFlush(), maybeRepaintManager(), needsFlush, QWidget::parentWidget(), Q_ASSERT, qEnvironmentVariableIntValue(), rect, textureChildSeen, QRegion::translate(), QRect::translated(), QWidget::updatesEnabled, and QWidget::window().

Referenced by invalidateBackingStore_resizeHelper(), and setGeometry_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nativeChildrenForced()

bool QWidgetPrivate::nativeChildrenForced ( ) const
inline

Definition at line 529 of file qwidget_p.h.

◆ naturalWidgetFont()

QFont QWidgetPrivate::naturalWidgetFont ( uint  inheritedMask) const

Definition at line 4707 of file qwidget.cpp.

References Qt::AA_UseStyleSheetPropagationInWidgetStyles, extra, QApplication::font(), QFont::isCopyOf(), QWidget::parentWidget(), QT_CONFIG, QFont::resolve(), QFont::setResolveMask(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.

Referenced by resolveFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ naturalWidgetPalette()

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 4560 of file qwidget.cpp.

References Qt::AA_UseStyleSheetPropagationInWidgetStyles, extra, QPalette::isCopyOf(), QGuiApplication::palette(), QApplication::palette(), QWidget::parentWidget(), QT_CONFIG, QPalette::resolve(), QPalette::setResolveMask(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.

Referenced by resolvePalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ overlappedRegion()

QRegion QWidgetPrivate::overlappedRegion ( const QRect rect,
bool  breakAfterFirst = false 
) const

Definition at line 1711 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, QWidgetData::crect, data, i, QRegion::intersects(), QWidget::isVisible(), QWidget::isWindow(), QWidget::mask(), qobject_cast< QWidget * >(), qRectIntersects(), rect, QList< T >::size(), QRect::topLeft(), QRect::translate(), QRegion::translated(), and QRect::translated().

+ Here is the call graph for this function:

◆ paintBackground()

void QWidgetPrivate::paintBackground ( QPainter painter,
const QRegion rgn,
DrawWidgetFlags  flags = DrawAsRoot 
) const

Definition at line 2268 of file qwidget.cpp.

References QPainter::compositionMode(), QPainter::CompositionMode_Source, DontSetCompositionMode, DrawAsRoot, fillRegion(), QStyleOption::initFrom(), QBrush::isOpaque(), opt, painter, QStyle::PE_Widget, QPainter::setClipRegion(), QPainter::setCompositionMode(), updateBrushOrigin(), Qt::WA_StyledBackground, and QPalette::Window.

Referenced by drawWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paintOnScreen()

void QWidgetPrivate::paintOnScreen ( const QRegion rgn)

Definition at line 1771 of file qwidget.cpp.

References clipRect(), clipToEffectiveMask(), createExtra(), DrawAsRoot, DrawPaintOnScreen, drawWidget(), engine, extra, QPaintEngine::OpenGL, QPaintEngine::OpenGL2, Q_UNLIKELY, qWarning, shouldDiscardSyncRequest(), usesDoubleBufferedGLContext, and Qt::WA_StaticContents.

Referenced by syncBackingStore(), and syncBackingStore().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paintSiblingsRecursive()

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 5721 of file qwidget.cpp.

References QList< T >::at(), QRegion::boundingRect(), boundingRect(), DontDrawNativeChildren, DontDrawOpaqueChildren, drawWidget(), effectiveRectFor(), extra, graphicsEffect, isOpaque, paintSiblingsRecursive(), qobject_cast< QWidget * >(), qRectIntersects(), QT_CONFIG, sharedPainter(), and QRegion::translate().

Referenced by drawWidget(), and paintSiblingsRecursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parentGraphicsView()

static QWidget * QWidgetPrivate::parentGraphicsView ( const QWidget widget)
inlinestatic

Definition at line 445 of file qwidget_p.h.

References QList< T >::at(), bypassGraphicsProxyWidget(), QList< T >::empty(), Q_UNUSED, QGraphicsItem::scene(), QGraphicsScene::views(), and widget.

+ Here is the call graph for this function:

◆ pointInsideRectAndMask()

bool QWidgetPrivate::pointInsideRectAndMask ( const QPoint p) const
inline

Definition at line 843 of file qwidget_p.h.

References extra, and Qt::WA_MouseNoMask.

Referenced by childAt_helper().

+ Here is the caller graph for this function:

◆ prepareToRender()

QRegion QWidgetPrivate::prepareToRender ( const QRegion region,
QWidget::RenderFlags  renderFlags 
)

Definition at line 5330 of file qwidget.cpp.

References QLayout::activate(), QWidget::adjustSize(), QList< T >::append(), QList< T >::at(), QWidget::ensurePolished(), extra, i, QWidget::IgnoreMask, QLayout::invalidate(), isAboutToShow(), QRegion::isEmpty(), QWidget::isHidden(), isVisible(), QWidget::isWindow(), QWidget::layout(), QWidget::parentWidget(), QWidget::setAttribute(), QList< T >::size(), QTLWExtra::sizeAdjusted, QWidget::testAttribute(), void, Qt::WA_Resized, Qt::WA_WState_Hidden, widget, and QWidget::window().

Referenced by render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ propagatePaletteChange()

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 1836 of file qwidget.cpp.

References Qt::AA_UseStyleSheetPropagationInWidgetStyles, QList< T >::at(), QObjectData::children, directPaletteResolveMask, extra, i, inheritedPaletteResolveMask, QEvent::PaletteChange, qobject_cast< QWidget * >(), resolvePalette(), QCoreApplication::sendEvent(), QList< T >::size(), QCoreApplication::testAttribute(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.

Referenced by setPalette_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ raise_sys()

void QWidgetPrivate::raise_sys ( )

Definition at line 11894 of file qwidget.cpp.

References effectiveRectFor(), QWidget::parentWidget(), renderToTexture, setDirtyOpaqueRegion(), and Qt::WA_NativeWindow.

+ Here is the call graph for this function:

◆ redirected()

QPaintDevice * QWidgetPrivate::redirected ( QPoint offset) const
inline

Definition at line 504 of file qwidget_p.h.

Referenced by render().

+ Here is the caller graph for this function:

◆ render()

void QWidgetPrivate::render ( QPaintDevice target,
const QPoint targetOffset,
const QRegion sourceRegion,
QWidget::RenderFlags  renderFlags 
)

◆ render_helper()

void QWidgetPrivate::render_helper ( QPainter painter,
const QPoint targetOffset,
const QRegion sourceRegion,
QWidget::RenderFlags  renderFlags 
)

◆ repaint()

template<typename T >
void QWidgetPrivate::repaint ( t)

◆ reparentFocusWidgets()

void QWidgetPrivate::reparentFocusWidgets ( QWidget oldtlw)

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.

See also
reparent()

Definition at line 7100 of file qwidget.cpp.

References QWidget::clearFocus(), focus_child, focus_next, focus_prev, QWidget::isAncestorOf(), o, and QWidget::window().

+ Here is the call graph for this function:

◆ resizeViewportFramebuffer()

virtual void QWidgetPrivate::resizeViewportFramebuffer ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 624 of file qwidget_p.h.

◆ resolveFont()

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 4768 of file qwidget.cpp.

References inheritedFontResolveMask, localFont(), naturalWidgetFont(), QFont::resolve(), and setFont_helper().

Referenced by QGraphicsProxyWidget::event(), and updateFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveLayoutDirection()

void QWidgetPrivate::resolveLayoutDirection ( )

Definition at line 4860 of file qwidget.cpp.

References QGuiApplication::layoutDirection, setLayoutDirection_helper(), and Qt::WA_SetLayoutDirection.

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveLocale()

void QWidgetPrivate::resolveLocale ( )

Definition at line 5932 of file qwidget.cpp.

References QObjectData::parent, setLocale_helper(), Qt::WA_SetLocale, and Qt::WA_WindowPropagation.

+ Here is the call graph for this function:

◆ resolvePalette()

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 4604 of file qwidget.cpp.

References inheritedPaletteResolveMask, naturalWidgetPalette(), QPalette::resolve(), and setPalette_helper().

Referenced by QGraphicsProxyWidget::event(), and propagatePaletteChange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolveSamples()

virtual void QWidgetPrivate::resolveSamples ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 626 of file qwidget_p.h.

Referenced by sendPaintEvent().

+ Here is the caller graph for this function:

◆ restoreRedirected()

void QWidgetPrivate::restoreRedirected ( )
inline

Definition at line 511 of file qwidget_p.h.

Referenced by drawWidget().

+ Here is the caller graph for this function:

◆ rhiConfig()

virtual QPlatformBackingStoreRhiConfig QWidgetPrivate::rhiConfig ( ) const
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate, and QQuickWidgetPrivate.

Definition at line 584 of file qwidget_p.h.

Referenced by create(), and q_evaluateRhiConfigRecursive().

+ Here is the caller graph for this function:

◆ safeAreaMargins()

QMargins QWidgetPrivate::safeAreaMargins ( ) const

Definition at line 7758 of file qwidget.cpp.

References QMargins::bottom(), QRect::bottomRight(), QLayout::geometry(), QLayout::indexOf(), QMargins::isNull(), QRect::isNull(), QWidget::layout(), layout, QMargins::left(), QLayout::parentWidget(), QWidget::parentWidget(), qMax(), qWarning, QWidget::rect, QMargins::right(), QPlatformWindow::safeAreaMargins(), safeAreaMargins(), QWidget::testAttribute(), QMargins::top(), Qt::WA_LayoutOnEntireRect, QWidget::window(), QWidget::windowHandle(), QPoint::x(), and QPoint::y().

Referenced by safeAreaMargins().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ screen()

static QScreen * QWidgetPrivate::screen ( const QWidget widget,
const QPoint globalPosition,
bool  hasPosition = true 
)
inlinestatic

Definition at line 473 of file qwidget_p.h.

References screen, QWidget::screen(), view, QScreen::virtualSiblingAt(), and widget.

+ Here is the call graph for this function:

◆ screenGeometry() [1/2]

static QRect QWidgetPrivate::screenGeometry ( const QWidget widget)
inlinestatic

Definition at line 463 of file qwidget_p.h.

References widget.

Referenced by QComboBoxPrivate::popupGeometry(), and QMenuPrivate::popupGeometry().

+ Here is the caller graph for this function:

◆ screenGeometry() [2/2]

static QRect QWidgetPrivate::screenGeometry ( const QWidget widget,
const QPoint globalPosition,
bool  hasPosition = true 
)
inlinestatic

Definition at line 487 of file qwidget_p.h.

References QScreen::geometry, screen, and widget.

◆ scroll_sys() [1/2]

void QWidgetPrivate::scroll_sys ( int  dx,
int  dy 
)

Definition at line 10995 of file qwidget.cpp.

References scrollChildren(), and scrollRect().

+ Here is the call graph for this function:

◆ scroll_sys() [2/2]

void QWidgetPrivate::scroll_sys ( int  dx,
int  dy,
const QRect r 
)

Definition at line 11036 of file qwidget.cpp.

References scrollRect().

+ Here is the call graph for this function:

◆ scrollChildren()

void QWidgetPrivate::scrollChildren ( int  dx,
int  dy 
)

Definition at line 186 of file qwidget.cpp.

References QList< T >::at(), e, i, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), and Qt::WA_WState_Created.

Referenced by scroll_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scrollRect()

void QWidgetPrivate::scrollRect ( const QRect rect,
int  dx,
int  dy 
)

Definition at line 456 of file qwidgetrepaintmanager.cpp.

References QWidgetRepaintManager::bltRect(), clipRect(), dirty, get(), inDirtyList, QRegion::intersected(), invalidateBackingStore(), QRegion::isEmpty(), isOpaque, isOverlapped(), isScrolled, QRect::isValid(), QWidgetRepaintManager::markDirty(), QWidgetRepaintManager::markNeedsFlush(), maybeRepaintManager(), qEnvironmentVariableIntValue(), rect, scrollRect(), subtractOpaqueSiblings(), QRegion::translate(), QRect::translated(), Qt::WA_WState_InPaintEvent, and QWidget::window().

Referenced by QTabBarPrivate::_q_scrollTabs(), QTabBarPrivate::layoutTabs(), QTabBarPrivate::makeVisible(), scroll_sys(), scroll_sys(), and scrollRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendComposeStatus()

void QWidgetPrivate::sendComposeStatus ( QWidget w,
bool  end 
)
static

Definition at line 12328 of file qwidget.cpp.

References QList< T >::at(), beginCompose(), QObjectData::children, endCompose(), get(), i, qobject_cast< QWidget * >(), sendComposeStatus(), QList< T >::size(), and textureChildSeen.

Referenced by sendComposeStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendPaintEvent()

void QWidgetPrivate::sendPaintEvent ( const QRegion toBePainted)

Definition at line 5639 of file qwidget.cpp.

References e, renderToTexture, and resolveSamples().

Referenced by drawWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendPendingMoveAndResizeEvents()

void QWidgetPrivate::sendPendingMoveAndResizeEvents ( bool  recursive = false,
bool  disableUpdates = false 
)

Definition at line 7990 of file qwidget.cpp.

References QList< T >::at(), child, QObjectData::children, e, i, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_PendingMoveEvent, Qt::WA_PendingResizeEvent, and Qt::WA_UpdatesDisabled.

Referenced by activateChildLayoutsRecursively(), and show_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setConstraints_sys()

void QWidgetPrivate::setConstraints_sys ( )

Definition at line 3922 of file qwidget.cpp.

References QWindowPrivate::baseSize, extra, fixPosIncludesFrame(), QWindowPrivate::maximumSize, QWindowPrivate::minimumSize, QWindowPrivate::platformWindow, QPlatformWindow::propagateSizeHints(), qt_window_private(), QWindowPrivate::sizeIncrement, win, and QWidget::windowHandle().

+ Here is the call graph for this function:

◆ setCursor_sys()

void QWidgetPrivate::setCursor_sys ( const QCursor cursor)

Definition at line 4983 of file qwidget.cpp.

References cursor, Q_UNUSED, and qt_qpa_set_cursor().

+ Here is the call graph for this function:

◆ setDirtyOpaqueRegion()

void QWidgetPrivate::setDirtyOpaqueRegion ( )

Definition at line 1961 of file qwidget.cpp.

References dirtyOpaqueChildren, QObjectData::parent, and setDirtyOpaqueRegion().

Referenced by lower_sys(), raise_sys(), setDirtyOpaqueRegion(), stackUnder_sys(), and updateIsOpaque().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEnabled_helper()

void QWidgetPrivate::setEnabled_helper ( bool  enable)

◆ setFocus_sys()

void QWidgetPrivate::setFocus_sys ( )

Definition at line 6643 of file qwidget.cpp.

References Qt::AA_PluginApplication, Qt::ApplicationActive, QGuiApplication::applicationState(), QGuiApplication::focusWindow(), isEmbedded(), nativeWindow(), Qt::Popup, QCoreApplication::testAttribute(), Qt::WA_WState_Created, and QPlatformWindow::window().

+ Here is the call graph for this function:

◆ setFont_helper()

void QWidgetPrivate::setFont_helper ( const QFont font)
inline

Definition at line 273 of file qwidget_p.h.

References font, and QFont::resolveMask().

Referenced by resolveFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setGeometry_sys()

◆ setLayoutDirection_helper()

void QWidgetPrivate::setLayoutDirection_helper ( Qt::LayoutDirection  direction)

Definition at line 4842 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, direction, e, i, QList< T >::isEmpty(), QEvent::LayoutDirectionChange, qobject_cast< QWidget * >(), Qt::RightToLeft, QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_RightToLeft, and Qt::WA_SetLayoutDirection.

Referenced by resolveLayoutDirection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLayoutItemMargins() [1/2]

◆ setLayoutItemMargins() [2/2]

void QWidgetPrivate::setLayoutItemMargins ( QStyle::SubElement  element,
const QStyleOption opt = nullptr 
)

Definition at line 12291 of file qwidget.cpp.

References QRect::bottom(), bottomLayoutItemMargin, QStyleOption::initFrom(), QRect::isValid(), QRect::left(), leftLayoutItemMargin, opt, QStyleOption::rect, QRect::right(), rightLayoutItemMargin, QRect::setRect(), QRect::top(), and topLayoutItemMargin.

+ Here is the call graph for this function:

◆ setLocale_helper()

void QWidgetPrivate::setLocale_helper ( const QLocale l,
bool  forceUpdate = false 
)

Definition at line 5893 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, e, forceUpdate(), i, QList< T >::isEmpty(), locale, QEvent::LocaleChange, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), Qt::WA_SetLocale, and Qt::WA_WindowPropagation.

Referenced by resolveLocale().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMask_sys()

void QWidgetPrivate::setMask_sys ( const QRegion region)

Definition at line 13033 of file qwidget.cpp.

References window().

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMaximumSize_helper()

bool QWidgetPrivate::setMaximumSize_helper ( int &  maxw,
int &  maxh 
)

Definition at line 3977 of file qwidget.cpp.

References createExtra(), extra, Qt::Horizontal, Q_UNLIKELY, qMax(), qWarning, QWIDGETSIZE_MAX, and Qt::Vertical.

+ Here is the call graph for this function:

◆ setMinimumSize_helper()

bool QWidgetPrivate::setMinimumSize_helper ( int &  minw,
int &  minh 
)

Definition at line 3889 of file qwidget.cpp.

References createExtra(), extra, Qt::Horizontal, Q_UNLIKELY, qMax(), qWarning, QWIDGETSIZE_MAX, and Qt::Vertical.

+ Here is the call graph for this function:

◆ setModal_sys()

void QWidgetPrivate::setModal_sys ( )

Definition at line 2814 of file qwidget.cpp.

◆ setNetWmWindowTypes()

◆ setOpaque()

void QWidgetPrivate::setOpaque ( bool  opaque)

Definition at line 2190 of file qwidget.cpp.

References isOpaque, and updateIsTranslucent().

Referenced by init(), and updateIsOpaque().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPalette_helper()

void QWidgetPrivate::setPalette_helper ( const QPalette palette)

Definition at line 4611 of file qwidget.cpp.

References palette, propagatePaletteChange(), updateIsOpaque(), and updateSystemBackground().

Referenced by resolvePalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setParent_sys()

◆ setRedirected()

void QWidgetPrivate::setRedirected ( QPaintDevice replacement,
const QPoint offset 
)
inline

Definition at line 497 of file qwidget_p.h.

References Q_ASSERT, and Qt::WA_WState_InPaintEvent.

Referenced by drawWidget().

+ Here is the caller graph for this function:

◆ setRenderToTexture()

void QWidgetPrivate::setRenderToTexture ( )
inline

Definition at line 604 of file qwidget_p.h.

Referenced by QQuickWidgetPrivate::init().

+ Here is the caller graph for this function:

◆ setScreen()

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 2427 of file qwidget.cpp.

References QTLWExtra::initialScreen, screen, topData(), and windowHandle().

Referenced by QAlphaWidget::QAlphaWidget(), QRollEffect::QRollEffect(), QMenuPrivate::popup(), setScreenForPoint(), and QToolTip::showText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setScreenForPoint()

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 2412 of file qwidget.cpp.

References pos, QGuiApplication::screenAt(), and setScreen().

Referenced by QMenuPrivate::popup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSharedPainter()

void QWidgetPrivate::setSharedPainter ( QPainter painter)
inline

Definition at line 836 of file qwidget_p.h.

References painter, and QTLWExtra::window.

Referenced by render().

+ Here is the caller graph for this function:

◆ setStyle_helper()

void QWidgetPrivate::setStyle_helper ( QStyle newStyle,
bool  propagate 
)

Definition at line 2656 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, createExtra(), Qt::Desktop, e, extra, i, polished, proxy, qobject_cast< QWidget * >(), qt_styleSheet(), QCoreApplication::sendEvent(), QList< T >::size(), QEvent::StyleChange, and QStyle::unpolish().

Referenced by inheritStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSystemClip()

void QWidgetPrivate::setSystemClip ( QPaintEngine paintEngine,
qreal  devicePixelRatio,
const QRegion region 
)

Definition at line 1933 of file qwidget.cpp.

References QTransform::scale().

Referenced by drawWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTextureChildSeen()

void QWidgetPrivate::setTextureChildSeen ( )
inline

Definition at line 605 of file qwidget_p.h.

References QObjectPrivate::get(), and parent.

Referenced by QWidget::setParent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUpdatesEnabled_helper()

void QWidgetPrivate::setUpdatesEnabled_helper ( bool  enable)

Definition at line 1807 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, i, qobject_cast< QWidget * >(), QList< T >::size(), Qt::WA_ForceUpdatesDisabled, and Qt::WA_UpdatesDisabled.

+ Here is the call graph for this function:

◆ setVisible()

void QWidgetPrivate::setVisible ( bool  visible)

Definition at line 8344 of file qwidget.cpp.

References QLayout::activate(), QWidget::create(), QApplicationPrivate::hidden_focus_widget, hide_helper(), QEvent::HideToParent, layout, QEvent::LayoutRequest, QObjectData::parent, QWidget::parentWidget(), QCoreApplication::postEvent(), qApp, QCoreApplication::sendEvent(), QWidget::setAttribute(), show_helper(), QEvent::ShowToParent, QWidget::testAttribute(), updateGeometry_helper(), Qt::WA_KeyboardFocusChange, Qt::WA_Resized, Qt::WA_WState_Created, and Qt::WA_WState_Hidden.

Referenced by QWidgetWindowPrivate::setVisible(), and QMenuPrivate::ScrollerTearOffItem::updateScrollerRects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWidgetParentHelper()

void QWidgetPrivate::setWidgetParentHelper ( QObject widgetAsObject,
QObject newParent 
)
static

Definition at line 13085 of file qwidget.cpp.

References QObject::isWidgetType(), Q_ASSERT, QWidget::setParent(), and widget.

Referenced by QApplicationPrivate::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowFilePath_helper()

void QWidgetPrivate::setWindowFilePath_helper ( const QString filePath)

Definition at line 6266 of file qwidget.cpp.

References extra, fileName, Q_UNUSED, setWindowFilePath_sys(), and setWindowTitle_helper().

+ Here is the call graph for this function:

◆ setWindowFilePath_sys()

void QWidgetPrivate::setWindowFilePath_sys ( const QString filePath)

Definition at line 6282 of file qwidget.cpp.

References window().

Referenced by setWindowFilePath_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowFlags()

void QWidgetPrivate::setWindowFlags ( Qt::WindowFlags  flags)
virtual

Implemented in QWidgetPrivate so that QMdiSubWindowPrivate can reimplement it.

Reimplemented in QMdiSubWindowPrivate.

Definition at line 10577 of file qwidget.cpp.

References adjustQuitOnCloseAttribute(), Qt::WA_Moved, and Qt::Window.

Referenced by QMdiSubWindowPrivate::setWindowFlags().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowIcon_helper()

void QWidgetPrivate::setWindowIcon_helper ( )

Definition at line 6151 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, e, i, qobject_cast< QWidget * >(), QCoreApplication::sendEvent(), QList< T >::size(), and QEvent::WindowIconChange.

+ Here is the call graph for this function:

◆ setWindowIcon_sys()

void QWidgetPrivate::setWindowIcon_sys ( )

Definition at line 6196 of file qwidget.cpp.

References window().

+ Here is the call graph for this function:

◆ setWindowIconText_helper()

void QWidgetPrivate::setWindowIconText_helper ( const QString cap)

Definition at line 6051 of file qwidget.cpp.

References qt_setWindowTitle_helperHelper(), setWindowIconText_sys(), title, and Qt::WA_WState_Created.

Referenced by setWindowModified_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowIconText_sys()

void QWidgetPrivate::setWindowIconText_sys ( const QString cap)

Definition at line 6058 of file qwidget.cpp.

References Q_UNUSED, and window().

Referenced by setWindowIconText_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowModified_helper()

void QWidgetPrivate::setWindowModified_helper ( )

Definition at line 11560 of file qwidget.cpp.

References Q_UNLIKELY, qWarning, setWindowIconText_helper(), QPlatformWindow::setWindowModified(), setWindowTitle_helper(), Qt::WA_WindowModified, and window().

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowOpacity_sys()

void QWidgetPrivate::setWindowOpacity_sys ( qreal  opacity)

Definition at line 11513 of file qwidget.cpp.

◆ setWindowTitle_helper()

void QWidgetPrivate::setWindowTitle_helper ( const QString cap)

Definition at line 6033 of file qwidget.cpp.

References qt_setWindowTitle_helperHelper(), setWindowTitle_sys(), title, and Qt::WA_WState_Created.

Referenced by setWindowFilePath_helper(), and setWindowModified_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWindowTitle_sys()

void QWidgetPrivate::setWindowTitle_sys ( const QString cap)

Definition at line 6040 of file qwidget.cpp.

References window().

Referenced by setWindowTitle_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWinId()

void QWidgetPrivate::setWinId ( WId  id)

Definition at line 1562 of file qwidget.cpp.

References e, mapper, QCoreApplication::sendEvent(), and QEvent::WinIdChange.

Referenced by create(), and setParent_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWSGeometry()

void QWidgetPrivate::setWSGeometry ( )

Definition at line 208 of file qwidget.cpp.

References window().

+ Here is the call graph for this function:

◆ sharedPainter()

QPainter * QWidgetPrivate::sharedPainter ( ) const
inline

Definition at line 829 of file qwidget_p.h.

References QTLWExtra::window.

Referenced by drawWidget(), paintSiblingsRecursive(), and render().

+ Here is the caller graph for this function:

◆ shouldDiscardSyncRequest()

bool QWidgetPrivate::shouldDiscardSyncRequest ( ) const

Definition at line 659 of file qwidgetrepaintmanager.cpp.

References maybeTopData(), and Qt::WA_Mapped.

Referenced by paintOnScreen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldPaintOnScreen()

bool QWidgetPrivate::shouldPaintOnScreen ( ) const

Definition at line 2136 of file qwidget.cpp.

References Qt::WA_PaintOnScreen.

Referenced by drawWidget(), syncBackingStore(), and syncBackingStore().

+ Here is the caller graph for this function:

◆ show_helper()

void QWidgetPrivate::show_helper ( )

Definition at line 8052 of file qwidget.cpp.

References QApplication::activePopupWidget(), bypassGraphicsProxyWidget(), close(), QApplicationPrivate::hidden_focus_widget, isEmbedded(), QObjectData::isWindow, Qt::OtherFocusReason, Qt::Popup, QCoreApplication::processEvents(), Q_UNUSED, qApp, QCoreApplication::sendEvent(), sendPendingMoveAndResizeEvents(), QWidget::setFocus(), show_sys(), showChildren(), Qt::SplashScreen, Qt::Tool, Qt::ToolTip, Qt::WA_KeyboardFocusChange, and Qt::WA_WState_Visible.

Referenced by setVisible(), and show_recursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ show_recursive()

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 7972 of file qwidget.cpp.

References QLayout::activate(), createRecursively(), layout, show_helper(), and Qt::WA_WState_Created.

+ Here is the call graph for this function:

◆ show_sys()

void QWidgetPrivate::show_sys ( )

Definition at line 8136 of file qwidget.cpp.

References extra, fixPosIncludesFrame(), QPlatformIntegration::hasCapability(), invalidateBackingStore(), QRect::moveTopLeft(), Qt::NonModal, QGuiApplicationPrivate::platformIntegration(), QCoreApplication::postEvent(), QT_CONFIG, qt_qpa_set_cursor(), renderToTexture, QGuiApplicationPrivate::showModalWindow(), QRect::size(), Qt::WA_DontShowOnScreen, Qt::WA_Mapped, Qt::WA_Moved, Qt::WA_NativeWindow, Qt::WA_OutsideWSRange, window(), windowHandle(), and QPlatformIntegration::WindowManagement.

Referenced by setGeometry_sys(), and show_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showChildren()

void QWidgetPrivate::showChildren ( bool  spontaneous)

Definition at line 8458 of file qwidget.cpp.

References QList< T >::at(), QObjectData::children, e, i, QWidget::isWindow(), qobject_cast< QWidget * >(), QWidget::setAttribute(), QWidget::show(), QList< T >::size(), QWidget::testAttribute(), Qt::WA_Mapped, Qt::WA_WState_ExplicitShowHide, Qt::WA_WState_Hidden, widget, and QWidget::windowHandle().

Referenced by QWidgetWindow::handleExposeEvent(), and show_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stackUnder_sys()

void QWidgetPrivate::stackUnder_sys ( QWidget )

Definition at line 11991 of file qwidget.cpp.

References effectiveRectFor(), QWidget::parentWidget(), and setDirtyOpaqueRegion().

+ Here is the call graph for this function:

◆ stealKeyboardGrab()

bool QWidgetPrivate::stealKeyboardGrab ( bool  grab)

Definition at line 12760 of file qwidget.cpp.

References grabberWindow(), and window().

Referenced by grabForPopup(), and ungrabKeyboardForPopup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stealMouseGrab()

bool QWidgetPrivate::stealMouseGrab ( bool  grab)

Definition at line 12711 of file qwidget.cpp.

References grabberWindow(), and window().

Referenced by grabForPopup(), and ungrabMouseForPopup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ subtractOpaqueChildren()

void QWidgetPrivate::subtractOpaqueChildren ( QRegion rgn,
const QRect clipRect 
) const

Definition at line 2014 of file qwidget.cpp.

References QObjectData::children, clipRect(), getOpaqueChildren(), QList< T >::isEmpty(), and QRect::isEmpty().

Referenced by drawWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ subtractOpaqueSiblings()

void QWidgetPrivate::subtractOpaqueSiblings ( QRegion source,
bool *  hasDirtySiblingsAbove = nullptr,
bool  alsoNonOpaque = false 
) const

Definition at line 2025 of file qwidget.cpp.

References QList< T >::at(), QRegion::boundingRect(), QObjectData::children, QObject::children(), QWidgetData::crect, data, i, QListSpecialMethodsBase< T >::indexOf(), QRegion::isEmpty(), QList< T >::isEmpty(), QWidget::isVisible(), QWidget::isWindow(), QWidget::mask(), qEnvironmentVariableIntValue(), qobject_cast< QWidget * >(), qRectIntersects(), QList< T >::size(), QRect::topLeft(), QRegion::translate(), QRegion::translated(), and QRect::translated().

Referenced by scrollRect(), and QWidgetRepaintManager::staticContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ syncBackingStore() [1/2]

void QWidgetPrivate::syncBackingStore ( )

Definition at line 1752 of file qwidget.cpp.

References dirty, maybeRepaintManager(), paintOnScreen(), and shouldPaintOnScreen().

Referenced by QWidgetWindow::handleExposeEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ syncBackingStore() [2/2]

void QWidgetPrivate::syncBackingStore ( const QRegion region)

Definition at line 1762 of file qwidget.cpp.

References maybeRepaintManager(), paintOnScreen(), and shouldPaintOnScreen().

+ Here is the call graph for this function:

◆ texture()

virtual TextureData QWidgetPrivate::texture ( ) const
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate, and QQuickWidgetPrivate.

Definition at line 592 of file qwidget_p.h.

Referenced by findTextureWidgetsRecursively().

+ Here is the caller graph for this function:

◆ textureListFlags()

virtual QPlatformTextureList::Flags QWidgetPrivate::textureListFlags ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate, and QQuickWidgetPrivate.

Definition at line 593 of file qwidget_p.h.

References QPlatformTextureList::StacksOnTop, and Qt::WA_AlwaysStackOnTop.

Referenced by findTextureWidgetsRecursively(), QOpenGLWidgetPrivate::textureListFlags(), and QQuickWidgetPrivate::textureListFlags().

+ Here is the caller graph for this function:

◆ toggleStereoTargetBuffer()

virtual bool QWidgetPrivate::toggleStereoTargetBuffer ( )
inlinevirtual

Reimplemented in QOpenGLWidgetPrivate.

Definition at line 631 of file qwidget_p.h.

◆ topData()

QTLWExtra * QWidgetPrivate::topData ( ) const
inline

Definition at line 818 of file qwidget_p.h.

References createTLExtra(), and extra.

Referenced by QWidgetTextControlPrivate::contextMenuEvent(), create(), findAllTextureWidgetsRecursively(), QMenuPrivate::popup(), QMenuBarPrivate::popupAction(), setGeometry_sys(), setParent_sys(), setScreen(), and widgetTexturesFor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unsetCursor_sys()

void QWidgetPrivate::unsetCursor_sys ( )

Definition at line 5003 of file qwidget.cpp.

References qt_qpa_set_cursor().

+ Here is the call graph for this function:

◆ update()

template<typename T >
void QWidgetPrivate::update ( t)

Definition at line 11170 of file qwidget.cpp.

References QTLWExtra::backingStore, QCoreApplication::postEvent(), renderToTexture, renderToTextureReallyDirty, QTLWExtra::repaintManager, Qt::WA_WState_InPaintEvent, and QTLWExtra::window.

Referenced by QLabelPrivate::ensureTextControl(), QLineEditPrivate::init(), QSplitterPrivate::recalc(), and QComboBox::setFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateBrushOrigin()

bool QWidgetPrivate::updateBrushOrigin ( QPainter painter,
const QBrush brush 
) const

Definition at line 2251 of file qwidget.cpp.

References Qt::NoBrush, painter, QObjectData::parent, priv(), scrollArea, QPainter::setBrushOrigin(), and Qt::SolidPattern.

Referenced by paintBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateContentsRect()

void QWidgetPrivate::updateContentsRect ( )

Definition at line 7712 of file qwidget.cpp.

References QEvent::ContentsRectChange, e, layout, QCoreApplication::sendEvent(), QLayout::update(), and Qt::WA_PendingResizeEvent.

Referenced by QWidgetWindowPrivate::processSafeAreaMarginsChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFocusChild()

void QWidgetPrivate::updateFocusChild ( )

Definition at line 6661 of file qwidget.cpp.

References emit, extra, and nullptr.

◆ updateFont()

void QWidgetPrivate::updateFont ( const QFont font)

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 4784 of file qwidget.cpp.

References Qt::AA_UseStyleSheetPropagationInWidgetStyles, QList< T >::at(), QObjectData::children, directFontResolveMask, e, extra, font, QEvent::FontChange, i, inheritedFontResolveMask, qobject_cast< QWidget * >(), qt_styleSheet(), resolveFont(), QCoreApplication::sendEvent(), QList< T >::size(), QCoreApplication::testAttribute(), QStyleSheetStyle::updateStyleSheetFont(), Qt::WA_StyleSheet, and Qt::WA_WindowPropagation.

+ Here is the call graph for this function:

◆ updateFrameStrut()

void QWidgetPrivate::updateFrameStrut ( )

Definition at line 12057 of file qwidget.cpp.

References QMargins::bottom(), QMargins::isNull(), QMargins::left(), maybeTopData(), QMargins::right(), and QMargins::top().

Referenced by fixPosIncludesFrame(), and frameStrut().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateGeometry_helper()

void QWidgetPrivate::updateGeometry_helper ( bool  forceUpdate)

Definition at line 10498 of file qwidget.cpp.

References extra, forceUpdate(), QEvent::LayoutRequest, QObjectData::parent, QCoreApplication::postEvent(), QSizePolicy::retainSizeWhenHidden(), retainSizeWhenHiddenChanged, size_policy, and widgetItem.

Referenced by setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateIsOpaque()

void QWidgetPrivate::updateIsOpaque ( )

Definition at line 2151 of file qwidget.cpp.

References QPalette::brush(), graphicsEffect, QBrush::isOpaque(), Qt::NoBrush, setDirtyOpaqueRegion(), setOpaque(), QBrush::style(), Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_PaintOnScreen, and QPalette::Window.

Referenced by setPalette_helper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateIsTranslucent()

void QWidgetPrivate::updateIsTranslucent ( )

Definition at line 2198 of file qwidget.cpp.

References Qt::WA_TranslucentBackground, and window().

Referenced by createTLSysExtra(), and setOpaque().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSystemBackground()

void QWidgetPrivate::updateSystemBackground ( )

Definition at line 4624 of file qwidget.cpp.

Referenced by setEnabled_helper(), and setPalette_helper().

+ Here is the caller graph for this function:

◆ updateWidgetTransform()

void QWidgetPrivate::updateWidgetTransform ( QEvent event)

Definition at line 215 of file qwidget.cpp.

References QEvent::FocusIn, QGuiApplication::focusObject(), Qt::ImInputItemClipRectangle, QGuiApplication::inputMethod(), QInputMethod::setInputItemRectangle(), QInputMethod::setInputItemTransform(), and QInputMethod::update().

+ Here is the call graph for this function:

◆ windowHandle()

QWindow * QWidgetPrivate::windowHandle ( WindowHandleMode  mode = WindowHandleMode::Direct) const

Definition at line 1029 of file qwidget.cpp.

References Closest, Direct, maybeTopData(), TopLevel, window(), and windowHandle().

Referenced by _q_closestWindowHandle(), associatedScreen(), close(), hide_sys(), QDockWidgetPrivate::mouseMoveEvent(), QMenuPrivate::popup(), setScreen(), show_sys(), QComboBox::showPopup(), and windowHandle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ actions

◆ allWidgets

◆ bg_role

QPalette::ColorRole QWidgetPrivate::bg_role

Definition at line 710 of file qwidget_p.h.

◆ bottomLayoutItemMargin

signed char QWidgetPrivate::bottomLayoutItemMargin

Definition at line 692 of file qwidget_p.h.

Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().

◆ bottommargin

◆ childrenHiddenByWState

uint QWidgetPrivate::childrenHiddenByWState

Definition at line 726 of file qwidget_p.h.

Referenced by QWidgetWindow::handleExposeEvent().

◆ childrenShownByExpose

uint QWidgetPrivate::childrenShownByExpose

Definition at line 727 of file qwidget_p.h.

Referenced by QWidgetWindow::handleExposeEvent().

◆ data

◆ directFontResolveMask

uint QWidgetPrivate::directFontResolveMask

Definition at line 681 of file qwidget_p.h.

Referenced by localFont(), and updateFont().

◆ directPaletteResolveMask

decltype(std::declval<QPalette>().resolveMask()) QWidgetPrivate::directPaletteResolveMask

Definition at line 683 of file qwidget_p.h.

Referenced by propagatePaletteChange().

◆ dirty

QRegion QWidgetPrivate::dirty

Definition at line 664 of file qwidget_p.h.

Referenced by invalidateBackingStore_resizeHelper(), scrollRect(), and syncBackingStore().

◆ dirtyOpaqueChildren

uint QWidgetPrivate::dirtyOpaqueChildren

Definition at line 711 of file qwidget_p.h.

Referenced by getOpaqueChildren(), and setDirtyOpaqueRegion().

◆ extra

◆ extraPaintEngine

QPaintEngine* QWidgetPrivate::extraPaintEngine

Definition at line 647 of file qwidget_p.h.

Referenced by init().

◆ fg_role

QPalette::ColorRole QWidgetPrivate::fg_role

Definition at line 709 of file qwidget_p.h.

◆ focus_child

QWidget* QWidgetPrivate::focus_child

Definition at line 642 of file qwidget_p.h.

Referenced by reparentFocusWidgets().

◆ focus_next

QWidget* QWidgetPrivate::focus_next

Definition at line 640 of file qwidget_p.h.

Referenced by init(), and reparentFocusWidgets().

◆ focus_prev

QWidget* QWidgetPrivate::focus_prev

Definition at line 641 of file qwidget_p.h.

Referenced by init(), and reparentFocusWidgets().

◆ gestureContext

QMap<Qt::GestureType, Qt::GestureFlags> QWidgetPrivate::gestureContext

Definition at line 704 of file qwidget_p.h.

Referenced by QApplication::notify().

◆ graphicsEffect

◆ hd

Qt::HANDLE QWidgetPrivate::hd

Definition at line 695 of file qwidget_p.h.

◆ high_attributes

uint QWidgetPrivate::high_attributes[4]

Definition at line 708 of file qwidget_p.h.

Referenced by QWidgetPrivate().

◆ imHints

Qt::InputMethodHints QWidgetPrivate::imHints

Definition at line 656 of file qwidget_p.h.

◆ inDirtyList

uint QWidgetPrivate::inDirtyList

Definition at line 714 of file qwidget_p.h.

Referenced by scrollRect().

◆ inheritedFontResolveMask

uint QWidgetPrivate::inheritedFontResolveMask

Definition at line 682 of file qwidget_p.h.

Referenced by QGraphicsProxyWidget::event(), resolveFont(), and updateFont().

◆ inheritedPaletteResolveMask

QPalette::ResolveMask QWidgetPrivate::inheritedPaletteResolveMask

◆ inheritsInputMethodHints

◆ instanceCounter

int QWidgetPrivate::instanceCounter = 0
static

Definition at line 693 of file qwidget_p.h.

Referenced by QApplication::~QApplication(), QWidget::~QWidget(), and init().

◆ isMoved

uint QWidgetPrivate::isMoved

Definition at line 716 of file qwidget_p.h.

Referenced by moveRect().

◆ isOpaque

◆ isScrolled

uint QWidgetPrivate::isScrolled

Definition at line 715 of file qwidget_p.h.

Referenced by scrollRect().

◆ layout

◆ leftLayoutItemMargin

signed char QWidgetPrivate::leftLayoutItemMargin

Definition at line 689 of file qwidget_p.h.

Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().

◆ leftmargin

◆ locale

◆ mapper

QWidgetMapper * QWidgetPrivate::mapper = nullptr
static

◆ maxInstances

int QWidgetPrivate::maxInstances = 0
static

Definition at line 694 of file qwidget_p.h.

Referenced by QApplication::~QApplication(), and init().

◆ mustHaveWindowHandle

uint QWidgetPrivate::mustHaveWindowHandle

Definition at line 718 of file qwidget_p.h.

Referenced by init().

◆ needsFlush

QRegion* QWidgetPrivate::needsFlush

Definition at line 644 of file qwidget_p.h.

Referenced by moveRect().

◆ opaqueChildren

QRegion QWidgetPrivate::opaqueChildren

Definition at line 663 of file qwidget_p.h.

Referenced by getOpaqueChildren().

◆ polished

const QMetaObject* QWidgetPrivate::polished
mutable

Definition at line 648 of file qwidget_p.h.

Referenced by setStyle_helper().

◆ redirectDev

QPaintDevice* QWidgetPrivate::redirectDev

Definition at line 645 of file qwidget_p.h.

◆ redirectOffset

QPoint QWidgetPrivate::redirectOffset

Definition at line 699 of file qwidget_p.h.

◆ renderToTexture

uint QWidgetPrivate::renderToTexture

◆ renderToTextureReallyDirty

uint QWidgetPrivate::renderToTextureReallyDirty

Definition at line 724 of file qwidget_p.h.

Referenced by drawWidget(), and update().

◆ retainSizeWhenHiddenChanged

uint QWidgetPrivate::retainSizeWhenHiddenChanged

Definition at line 713 of file qwidget_p.h.

Referenced by updateGeometry_helper().

◆ rightLayoutItemMargin

signed char QWidgetPrivate::rightLayoutItemMargin

Definition at line 691 of file qwidget_p.h.

Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().

◆ rightmargin

◆ size_policy

QSizePolicy QWidgetPrivate::size_policy

Definition at line 697 of file qwidget_p.h.

Referenced by updateGeometry_helper().

◆ textureChildSeen

◆ topLayoutItemMargin

signed char QWidgetPrivate::topLayoutItemMargin

Definition at line 690 of file qwidget_p.h.

Referenced by getLayoutItemMargins(), setLayoutItemMargins(), and setLayoutItemMargins().

◆ topmargin

◆ usesDoubleBufferedGLContext

uint QWidgetPrivate::usesDoubleBufferedGLContext

Definition at line 717 of file qwidget_p.h.

Referenced by paintOnScreen().

◆ usesRhiFlush

uint QWidgetPrivate::usesRhiFlush

Definition at line 725 of file qwidget_p.h.

Referenced by create().

◆ widgetItem

QWidgetItemV2* QWidgetPrivate::widgetItem

The documentation for this class was generated from the following files: