Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickWidgetPrivate Class Reference

#include <qquickwidget_p.h>

+ Inheritance diagram for QQuickWidgetPrivate:
+ Collaboration diagram for QQuickWidgetPrivate:

Public Member Functions

 QQuickWidgetPrivate ()
 
void destroy ()
 
void execute ()
 
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override
 
void initResize ()
 
void updateSize ()
 
void updatePosition ()
 
void updateFrambufferObjectSize ()
 
void setRootObject (QObject *)
 
void render (bool needsSync)
 
void renderSceneGraph ()
 
void initializeWithRhi ()
 
void handleContextCreationFailure (const QSurfaceFormat &format)
 
QPlatformBackingStoreRhiConfig rhiConfig () const override
 
TextureData texture () const override
 
QPlatformTextureList::Flags textureListFlags () override
 
QImage grabFramebuffer () override
 
void init (QQmlEngine *e=nullptr)
 
void ensureBackingScene ()
 
void initOffscreenWindow ()
 
void ensureEngine () const
 
void handleWindowChange ()
 
void invalidateRenderControl ()
 
QSize rootObjectSize () const
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () 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 reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
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 ()
 
bool isExplicitlyHidden () const
 
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 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
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- 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)
 
QObjectList receiverList (const char *signal) 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 void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemSiblingOrderChanged (QQuickItem *)
 
virtual void itemVisibilityChanged (QQuickItem *)
 
virtual void itemEnabledChanged (QQuickItem *)
 
virtual void itemOpacityChanged (QQuickItem *)
 
virtual void itemDestroyed (QQuickItem *)
 
virtual void itemChildAdded (QQuickItem *, QQuickItem *)
 
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
 
virtual void itemParentChanged (QQuickItem *, QQuickItem *)
 
virtual void itemRotationChanged (QQuickItem *)
 
virtual void itemImplicitWidthChanged (QQuickItem *)
 
virtual void itemImplicitHeightChanged (QQuickItem *)
 
virtual void itemFocusChanged (QQuickItem *, Qt::FocusReason)
 
virtual QQuickAnchorsPrivateanchorPrivate ()
 

Static Public Member Functions

static QQuickWidgetPrivateget (QQuickWidget *view)
 
static const QQuickWidgetPrivateget (const QQuickWidget *view)
 
- Static Public Member Functions inherited from QWidgetPrivate
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 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 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

QPointer< QQuickItemroot
 
QUrl source
 
QPointer< QQmlEngineengine
 
QQmlComponentcomponent
 
QBasicTimer resizetimer
 
QQuickWindowoffscreenWindow
 
QQuickRenderControlrenderControl
 
QRhirhi
 
QRhiTextureoutputTexture
 
QRhiRenderBufferdepthStencil
 
QRhiRenderBuffermsaaBuffer
 
QRhiTextureRenderTargetrt
 
QRhiRenderPassDescriptorrtRp
 
QQuickWidget::ResizeMode resizeMode
 
QSize initialSize
 
QElapsedTimer frameTimer
 
QBasicTimer updateTimer
 
bool eventPending
 
bool updatePending
 
bool fakeHidden
 
int requestedSamples
 
bool useSoftwareRenderer
 
QImage softwareImage
 
QRegion updateRegion
 
bool forceFullUpdate
 
bool deviceLost
 
QBackingStoreRhiSupport offscreenRenderer
 
- Public Attributes inherited from QWidgetPrivate
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 receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
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 Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 

Detailed Description

Definition at line 41 of file qquickwidget_p.h.

Constructor & Destructor Documentation

◆ QQuickWidgetPrivate()

QQuickWidgetPrivate::QQuickWidgetPrivate ( )

Definition at line 285 of file qquickwidget.cpp.

Member Function Documentation

◆ destroy()

void QQuickWidgetPrivate::destroy ( )

Definition at line 308 of file qquickwidget.cpp.

References invalidateRenderControl(), offscreenRenderer, offscreenWindow, renderControl, and QBackingStoreRhiSupport::reset().

+ Here is the call graph for this function:

◆ ensureBackingScene()

void QQuickWidgetPrivate::ensureBackingScene ( )

Definition at line 166 of file qquickwidget.cpp.

References offscreenWindow, renderControl, QSGRendererInterface::Software, and useSoftwareRenderer.

Referenced by initOffscreenWindow(), and rhiConfig().

+ Here is the caller graph for this function:

◆ ensureEngine()

void QQuickWidgetPrivate::ensureEngine ( ) const

Definition at line 232 of file qquickwidget.cpp.

References QPointer< T >::data(), engine, QPointer< T >::isNull(), offscreenWindow, and QQmlEngine::setIncubationController().

Referenced by execute().

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

◆ execute()

void QQuickWidgetPrivate::execute ( )

Definition at line 318 of file qquickwidget.cpp.

References component, QObject::connect(), QPointer< T >::data(), engine, ensureEngine(), QQmlComponent::isLoading(), root, SIGNAL, SLOT, and statusChanged().

Referenced by handleWindowChange().

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

◆ get() [1/2]

static const QQuickWidgetPrivate * QQuickWidgetPrivate::get ( const QQuickWidget * view)
inlinestatic

Definition at line 48 of file qquickwidget_p.h.

References view.

◆ get() [2/2]

static QQuickWidgetPrivate * QQuickWidgetPrivate::get ( QQuickWidget * view)
inlinestatic

Definition at line 47 of file qquickwidget_p.h.

References view.

◆ grabFramebuffer()

QImage QQuickWidgetPrivate::grabFramebuffer ( )
overridevirtual

Reimplemented from QWidgetPrivate.

Definition at line 441 of file qquickwidget.cpp.

References QRhi::beginOffscreenFrame(), cb, QRhi::endOffscreenFrame(), QImage::Format_RGBA8888_Premultiplied, QRhi::isYUpInFramebuffer(), QRhi::nextResourceUpdateBatch(), offscreenWindow, outputTexture, render(), rhi, and useSoftwareRenderer.

+ Here is the call graph for this function:

◆ handleContextCreationFailure()

void QQuickWidgetPrivate::handleContextCreationFailure ( const QSurfaceFormat & format)

Definition at line 984 of file qquickwidget.cpp.

References QCoreApplication::applicationName, QMessageBox::critical(), emit, QMetaMethod::fromSignal(), QLibraryInfo::isDebugBuild(), qFatal, qPrintable, QQuickWindowPrivate::rhiCreationFailureMessage(), and QQuickWidget::sceneGraphError().

+ Here is the call graph for this function:

◆ handleWindowChange()

void QQuickWidgetPrivate::handleWindowChange ( )

Definition at line 252 of file qquickwidget.cpp.

References Qt::AA_ShareOpenGLContexts, api, QObject::connect(), QQuickWindow::contentItem, execute(), initOffscreenWindow(), offscreenWindow, QPlatformBackingStoreRhiConfig::OpenGL, qGuiApp, renderControl, rhiConfig(), root, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ init()

◆ initializeWithRhi()

void QQuickWidgetPrivate::initializeWithRhi ( )

Definition at line 1024 of file qquickwidget.cpp.

References QRhi::addCleanupCallback(), QBackingStoreRhiSupport::apiToRhiBackend(), QRhi::backend(), QRhi::backendName(), QBackingStoreRhiSupport::create(), deviceLost, QQuickGraphicsDevice::fromRhi(), graphicsApiToBackingStoreRhiApi(), QQuickRenderControl::initialize(), invalidateRenderControl(), offscreenRenderer, offscreenWindow, qWarning, renderControl, QBackingStoreRhiSupport::rhi(), QWidgetPrivate::rhi(), rhi, rhiConfig(), QBackingStoreRhiSupport::setConfig(), and QBackingStoreRhiSupport::setFormat().

Referenced by render().

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

◆ initOffscreenWindow()

void QQuickWidgetPrivate::initOffscreenWindow ( )

Definition at line 149 of file qquickwidget.cpp.

References QObject::connect(), ensureBackingScene(), QWindow::focusObjectChanged(), offscreenWindow, SIGNAL, and SLOT.

Referenced by handleWindowChange(), and init().

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

◆ initResize()

void QQuickWidgetPrivate::initResize ( )

Definition at line 894 of file qquickwidget.cpp.

References QQuickItemPrivate::Geometry, QQuickItemPrivate::get(), resizeMode, root, QQuickWidget::SizeViewToRootObject, and updateSize().

Referenced by setRootObject().

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

◆ invalidateRenderControl()

void QQuickWidgetPrivate::invalidateRenderControl ( )

Definition at line 242 of file qquickwidget.cpp.

References QQuickRenderControl::invalidate(), QRhi::makeThreadLocalNativeContextCurrent(), renderControl, rhi, and useSoftwareRenderer.

Referenced by destroy(), initializeWithRhi(), and render().

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

◆ itemGeometryChanged()

void QQuickWidgetPrivate::itemGeometryChanged ( QQuickItem * item,
QQuickGeometryChange change,
const QRectF & oldGeometry )
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 342 of file qquickwidget.cpp.

References QQuickItemChangeListener::itemGeometryChanged(), resizeMode, resizetimer, root, QQuickWidget::SizeViewToRootObject, and QBasicTimer::start().

+ Here is the call graph for this function:

◆ render()

void QQuickWidgetPrivate::render ( bool needsSync)

◆ renderSceneGraph()

void QQuickWidgetPrivate::renderSceneGraph ( )

Definition at line 418 of file qquickwidget.cpp.

References fakeHidden, QRegion::isEmpty(), render(), updatePending, updateRegion, and useSoftwareRenderer.

+ Here is the call graph for this function:

◆ rhiConfig()

QPlatformBackingStoreRhiConfig QQuickWidgetPrivate::rhiConfig ( ) const
overridevirtual

Reimplemented from QWidgetPrivate.

Definition at line 1294 of file qquickwidget.cpp.

References ensureBackingScene(), QQuickWindowPrivate::get(), graphicsApiToBackingStoreRhiApi(), QQuickWindowPrivate::graphicsConfig, QQuickGraphicsConfiguration::isDebugLayerEnabled(), offscreenWindow, and useSoftwareRenderer.

Referenced by handleWindowChange(), and initializeWithRhi().

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

◆ rootObjectSize()

QSize QQuickWidgetPrivate::rootObjectSize ( ) const

Definition at line 966 of file qquickwidget.cpp.

References QQuickItem::height, root, rootObjectSize(), QSize::setHeight(), QSize::setWidth(), and QQuickItem::width.

Referenced by rootObjectSize(), and setRootObject().

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

◆ setRootObject()

void QQuickWidgetPrivate::setRootObject ( QObject * obj)

Definition at line 1263 of file qquickwidget.cpp.

References QQuickWindow::contentItem, Qt::endl(), initialSize, initResize(), offscreenWindow, qWarning, resizeMode, root, rootObjectSize(), QQuickItem::setParentItem(), QQuickWidget::SizeViewToRootObject, and Qt::WA_Resized.

+ Here is the call graph for this function:

◆ texture()

QWidgetPrivate::TextureData QQuickWidgetPrivate::texture ( ) const
overridevirtual

Reimplemented from QWidgetPrivate.

Definition at line 1314 of file qquickwidget.cpp.

References outputTexture, and qWarning.

◆ textureListFlags()

QPlatformTextureList::Flags QQuickWidgetPrivate::textureListFlags ( )
overridevirtual

Reimplemented from QWidgetPrivate.

Definition at line 1325 of file qquickwidget.cpp.

References QPlatformTextureList::NeedsPremultipliedAlphaBlending, and QWidgetPrivate::textureListFlags().

+ Here is the call graph for this function:

◆ updateFrambufferObjectSize()

void QQuickWidgetPrivate::updateFrambufferObjectSize ( )

◆ updatePosition()

void QQuickWidgetPrivate::updatePosition ( )

Update the position of the offscreen window, so it matches the position of the QQuickWidget.

Definition at line 955 of file qquickwidget.cpp.

References offscreenWindow, and pos.

◆ updateSize()

void QQuickWidgetPrivate::updateSize ( )

Definition at line 905 of file qquickwidget.cpp.

References QQuickWindow::contentItem, QQuickItem::height, QSize::isValid(), offscreenWindow, qFuzzyCompare(), resizeMode, root, QWindow::setHeight(), QQuickItem::setHeight(), QQuickItem::setSize(), QWindow::setWidth(), QQuickItem::setWidth(), QQuickWidget::SizeRootObjectToView, QQuickWidget::SizeViewToRootObject, QSizeF::toSize(), and QQuickItem::width.

Referenced by initResize().

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

Member Data Documentation

◆ component

QQmlComponent* QQuickWidgetPrivate::component

Definition at line 84 of file qquickwidget_p.h.

Referenced by execute().

◆ depthStencil

QRhiRenderBuffer* QQuickWidgetPrivate::depthStencil

Definition at line 91 of file qquickwidget_p.h.

◆ deviceLost

bool QQuickWidgetPrivate::deviceLost

Definition at line 111 of file qquickwidget_p.h.

Referenced by initializeWithRhi(), and render().

◆ engine

QPointer<QQmlEngine> QQuickWidgetPrivate::engine
mutable

Definition at line 83 of file qquickwidget_p.h.

Referenced by ensureEngine(), execute(), and init().

◆ eventPending

bool QQuickWidgetPrivate::eventPending

Definition at line 101 of file qquickwidget_p.h.

◆ fakeHidden

bool QQuickWidgetPrivate::fakeHidden

Definition at line 103 of file qquickwidget_p.h.

Referenced by renderSceneGraph().

◆ forceFullUpdate

bool QQuickWidgetPrivate::forceFullUpdate

Definition at line 110 of file qquickwidget_p.h.

Referenced by render().

◆ frameTimer

QElapsedTimer QQuickWidgetPrivate::frameTimer

Definition at line 98 of file qquickwidget_p.h.

◆ initialSize

QSize QQuickWidgetPrivate::initialSize

Definition at line 97 of file qquickwidget_p.h.

Referenced by setRootObject().

◆ msaaBuffer

QRhiRenderBuffer* QQuickWidgetPrivate::msaaBuffer

Definition at line 92 of file qquickwidget_p.h.

◆ offscreenRenderer

QBackingStoreRhiSupport QQuickWidgetPrivate::offscreenRenderer

Definition at line 113 of file qquickwidget_p.h.

Referenced by destroy(), and initializeWithRhi().

◆ offscreenWindow

◆ outputTexture

QRhiTexture* QQuickWidgetPrivate::outputTexture

Definition at line 90 of file qquickwidget_p.h.

Referenced by grabFramebuffer(), render(), and texture().

◆ renderControl

QQuickRenderControl* QQuickWidgetPrivate::renderControl

◆ requestedSamples

int QQuickWidgetPrivate::requestedSamples

Definition at line 105 of file qquickwidget_p.h.

◆ resizeMode

QQuickWidget::ResizeMode QQuickWidgetPrivate::resizeMode

Definition at line 96 of file qquickwidget_p.h.

Referenced by initResize(), itemGeometryChanged(), setRootObject(), and updateSize().

◆ resizetimer

QBasicTimer QQuickWidgetPrivate::resizetimer

Definition at line 85 of file qquickwidget_p.h.

Referenced by itemGeometryChanged().

◆ rhi

QRhi* QQuickWidgetPrivate::rhi

◆ root

◆ rt

QRhiTextureRenderTarget* QQuickWidgetPrivate::rt

Definition at line 93 of file qquickwidget_p.h.

◆ rtRp

QRhiRenderPassDescriptor* QQuickWidgetPrivate::rtRp

Definition at line 94 of file qquickwidget_p.h.

◆ softwareImage

QImage QQuickWidgetPrivate::softwareImage

Definition at line 108 of file qquickwidget_p.h.

Referenced by render().

◆ source

QUrl QQuickWidgetPrivate::source

Definition at line 81 of file qquickwidget_p.h.

◆ updatePending

bool QQuickWidgetPrivate::updatePending

Definition at line 102 of file qquickwidget_p.h.

Referenced by renderSceneGraph().

◆ updateRegion

QRegion QQuickWidgetPrivate::updateRegion

Definition at line 109 of file qquickwidget_p.h.

Referenced by render(), and renderSceneGraph().

◆ updateTimer

QBasicTimer QQuickWidgetPrivate::updateTimer

Definition at line 100 of file qquickwidget_p.h.

◆ useSoftwareRenderer

bool QQuickWidgetPrivate::useSoftwareRenderer

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