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
QQuickWindowPrivate Class Reference

#include <qquickwindow_p.h>

+ Inheritance diagram for QQuickWindowPrivate:
+ Collaboration diagram for QQuickWindowPrivate:

Classes

struct  Redirect
 

Public Types

enum  CustomEvents { FullUpdateRequest = QEvent::User + 1 , TriggerContextCreationFailure = QEvent::User + 2 }
 
enum  TextureFromNativeTextureFlag { NativeTextureIsExternalOES = 0x01 }
 
- Public Types inherited from QWindowPrivate
enum  PositionPolicy { WindowFrameInclusive , WindowFrameExclusive }
 
enum  SiblingPosition { PositionTop , PositionBottom }
 
enum class  FocusTarget {
  First , Last , Current , Next ,
  Prev
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QQuickWindowPrivate ()
 
 ~QQuickWindowPrivate () override
 
void setPalette (QQuickPalette *p) override
 
void updateWindowPalette ()
 
void updateChildrenPalettes (const QPalette &parentPalette) override
 
void init (QQuickWindow *, QQuickRenderControl *control=nullptr)
 
QQmlListProperty< QObjectdata ()
 
QQuickDeliveryAgentPrivatedeliveryAgentPrivate () const
 
void clearFocusObject () override
 
void setFocusToTarget (QWindowPrivate::FocusTarget) override
 
void dirtyItem (QQuickItem *)
 
void cleanup (QSGNode *)
 
void ensureCustomRenderTarget ()
 
void setCustomCommandBuffer (QRhiCommandBuffer *cb)
 
void polishItems ()
 
void forcePolish ()
 Schedules polish events on all items in the scene.
 
void invalidateFontData (QQuickItem *item)
 
void syncSceneGraph ()
 
void renderSceneGraph ()
 
bool isRenderable () const
 
bool emitError (QQuickWindow::SceneGraphError error, const QString &msg)
 
QSGTexturecreateTextureFromNativeTexture (quint64 nativeObjectHandle, int nativeLayoutOrState, uint nativeFormat, const QSize &size, QQuickWindow::CreateTextureOptions options, TextureFromNativeTextureFlags flags={}) const
 
QSGTexturecreateTextureFromNativeTexture (quint64 nativeObjectHandle, int nativeLayoutOrState, const QSize &size, QQuickWindow::CreateTextureOptions options, TextureFromNativeTextureFlags flags={}) const
 
void updateDirtyNodes ()
 
void cleanupNodes ()
 
void cleanupNodesOnShutdown ()
 
bool updateEffectiveOpacity (QQuickItem *)
 
void updateEffectiveOpacityRoot (QQuickItem *, qreal)
 
void updateDirtyNode (QQuickItem *)
 
void fireFrameSwapped ()
 
void fireAboutToStop ()
 
void clearGrabbers (QPointerEvent *event)
 
void updateChildWindowStackingOrder (QQuickItem *item=nullptr)
 
int multiViewCount ()
 
QRhiRenderTargetactiveCustomRhiRenderTarget ()
 
void clearFocusInScope (QQuickItem *scope, QQuickItem *item, Qt::FocusReason reason)
 
void runAndClearJobs (QList< QRunnable * > *jobs)
 
QOpenGLContextopenglContext ()
 
- Public Member Functions inherited from QWindowPrivate
 QWindowPrivate ()
 
 ~QWindowPrivate () override
 
void init (QWindow *parent, QScreen *targetScreen=nullptr)
 
void setCursor (const QCursor *c=nullptr)
 
bool applyCursor ()
 
QPoint globalPosition () const
 
QWindowtopLevelWindow (QWindow::AncestorMode mode=QWindow::IncludeTransients) const
 
virtual QWindoweventReceiver ()
 
virtual QPalette windowPalette () const
 
virtual void setVisible (bool visible)
 
void updateVisibility ()
 
void _q_clearAlert ()
 
void updateSiblingPosition (SiblingPosition)
 
bool windowRecreationRequired (QScreen *newScreen) const
 
void create (bool recursive)
 
void destroy ()
 
void setTopLevelScreen (QScreen *newScreen, bool recreate)
 
void connectToScreen (QScreen *topLevelScreen)
 
void disconnectFromScreen ()
 
void emitScreenChangedRecursion (QScreen *newScreen)
 
QScreenscreenForGeometry (const QRect &rect) const
 
void setTransientParent (QWindow *parent)
 
virtual void setFocusToTarget (FocusTarget, Qt::FocusReason)
 
virtual QRectF closestAcceptableGeometry (const QRectF &rect) const
 
void setMinOrMaxSize (QSize *oldSizeMember, const QSize &size, qxp::function_ref< void()> funcWidthChanged, qxp::function_ref< void()> funcHeightChanged)
 
virtual void processSafeAreaMarginsChanged ()
 
virtual bool participatesInLastWindowClosed () const
 
virtual bool treatAsVisible () const
 
bool isPopup () const
 
void setAutomaticPositionAndResizeEnabled (bool a)
 
bool updateDevicePixelRatio ()
 
- 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 std::string flagsForDumping () const
 
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 QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
 
virtual QQuickPalettepalette () const
 
virtual void resetPalette ()
 
virtual bool providesPalette () const
 
QPalette defaultPalette () const override
 
QPalette parentPalette (const QPalette &fallbackPalette) const override
 
void inheritPalette (const QPalette &parentPalette)
 
- Public Member Functions inherited from QQuickAbstractPaletteProvider
virtual ~QQuickAbstractPaletteProvider ()=default
 

Static Public Member Functions

static QQuickWindowPrivateget (QQuickWindow *c)
 
static const QQuickWindowPrivateget (const QQuickWindow *c)
 
static bool dragOverThreshold (qreal d, Qt::Axis axis, const QEventPoint *tp, int startDragThreshold=-1)
 
static bool dragOverThreshold (qreal d, Qt::Axis axis, QMouseEvent *event, int startDragThreshold=-1)
 
static void data_append (QQmlListProperty< QObject > *, QObject *)
 \qmlproperty list<QtObject> Window::data \qmldefault
 
static qsizetype data_count (QQmlListProperty< QObject > *)
 
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
 
static void data_clear (QQmlListProperty< QObject > *)
 
static void data_replace (QQmlListProperty< QObject > *, qsizetype, QObject *)
 
static void data_removeLast (QQmlListProperty< QObject > *)
 
static void rhiCreationFailureMessage (const QString &backendName, QString *translatedMessage, QString *untranslatedMessage)
 
static void emitBeforeRenderPassRecording (void *ud)
 
static void emitAfterRenderPassRecording (void *ud)
 
- Static Public Member Functions inherited from QWindowPrivate
static QWindowPrivateget (QWindow *window)
 
static Qt::WindowState effectiveState (Qt::WindowStates)
 
- 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

QQuickRootItemcontentItem
 
QSet< QQuickItem * > parentlessItems
 
QQuickDeliveryAgentdeliveryAgent = nullptr
 
QQuickItem::UpdatePaintNodeData updatePaintNodeData
 
QQuickItemdirtyItemList
 
QList< QSGNode * > cleanupNodeList
 
QVector< QQuickItem * > itemsToPolish
 
qreal lastReportedItemDevicePixelRatio
 
QMetaObject::Connection physicalDpiChangedConnection
 
QSGRenderContextcontext
 
QSGRendererrenderer
 
QByteArray visualizationMode
 
QSGRenderLoopwindowManager
 
QQuickRenderControlrenderControl
 
QScopedPointer< QQuickAnimatorControlleranimationController
 
QColor clearColor
 
uint persistentGraphics: 1
 
uint persistentSceneGraph: 1
 
uint inDestructor: 1
 
QQuickRenderTarget customRenderTarget
 
struct QQuickWindowPrivate::Redirect redirect
 
QQuickGraphicsDevice customDeviceObjects
 
QQuickGraphicsConfiguration graphicsConfig
 
QQuickWindowIncubationControllerincubationController
 
QMutex renderJobMutex
 
QList< QRunnable * > beforeSynchronizingJobs
 
QList< QRunnable * > afterSynchronizingJobs
 
QList< QRunnable * > beforeRenderingJobs
 
QList< QRunnable * > afterRenderingJobs
 
QList< QRunnable * > afterSwapJobs
 
QQuickWindow::GraphicsStateInfo rhiStateInfo
 
QRhirhi = nullptr
 
QRhiSwapChainswapchain = nullptr
 
QRhiRenderBufferdepthStencilForSwapchain = nullptr
 
QRhiRenderPassDescriptorrpDescForSwapchain = nullptr
 
uint hasActiveSwapchain: 1
 
uint hasRenderableSwapchain: 1
 
uint swapchainJustBecameRenderable: 1
 
uint updatesEnabled: 1
 
bool pendingFontUpdate = false
 
bool windowEventDispatch = false
 
QPointer< QQuickPalettewindowPaletteRef
 
- Public Attributes inherited from QWindowPrivate
QWindow::SurfaceType surfaceType = QWindow::RasterSurface
 
Qt::WindowFlags windowFlags = Qt::Window
 
QWindowparentWindow = nullptr
 
QPlatformWindowplatformWindow = nullptr
 
bool visible = false
 
bool visibilityOnDestroy = false
 
bool exposed = false
 
bool inClose = false
 
QSurfaceFormat requestedFormat
 
QString windowTitle
 
QString windowFilePath
 
QIcon windowIcon
 
QRect geometry
 
qreal devicePixelRatio = 1.0
 
Qt::WindowStates windowState = Qt::WindowNoState
 
QWindow::Visibility visibility = QWindow::Hidden
 
bool resizeEventPending = true
 
bool receivedExpose = false
 
PositionPolicy positionPolicy = WindowFrameExclusive
 
bool positionAutomatic = true
 
bool resizeAutomatic = true
 
Qt::ScreenOrientation contentOrientation = Qt::PrimaryOrientation
 
qreal opacity = 1
 
QRegion mask
 
QSize minimumSize = {0, 0}
 
QSize maximumSize = {QWINDOWSIZE_MAX, QWINDOWSIZE_MAX}
 
QSize baseSize
 
QSize sizeIncrement
 
Qt::WindowModality modality = Qt::NonModal
 
bool blockedByModalWindow = false
 
bool updateRequestPending = false
 
bool transientParentPropertySet = false
 
QPointer< QWindowtransientParent
 
QPointer< QScreentopLevelScreen
 
QCursor cursor = {Qt::ArrowCursor}
 
bool hasCursor = false
 
QElapsedTimer lastComposeTime
 
- 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
 

Static Public Attributes

static bool defaultAlphaBuffer = false
 
static QQuickWindow::TextRenderType textRenderType = QQuickWindow::QtTextRendering
 

Additional Inherited Members

- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 107 of file qquickwindow_p.h.

Member Enumeration Documentation

◆ CustomEvents

Enumerator
FullUpdateRequest 
TriggerContextCreationFailure 

Definition at line 114 of file qquickwindow_p.h.

◆ TextureFromNativeTextureFlag

Enumerator
NativeTextureIsExternalOES 

Definition at line 167 of file qquickwindow_p.h.

Constructor & Destructor Documentation

◆ QQuickWindowPrivate()

QQuickWindowPrivate::QQuickWindowPrivate ( )

Definition at line 725 of file qquickwindow.cpp.

◆ ~QQuickWindowPrivate()

QQuickWindowPrivate::~QQuickWindowPrivate ( )
override

Definition at line 745 of file qquickwindow.cpp.

References deliveryAgent, inDestructor, redirect, and rhi.

Member Function Documentation

◆ activeCustomRhiRenderTarget()

QRhiRenderTarget * QQuickWindowPrivate::activeCustomRhiRenderTarget ( )

Definition at line 626 of file qquickwindow.cpp.

◆ cleanup()

void QQuickWindowPrivate::cleanup ( QSGNode * n)

Definition at line 908 of file qquickwindow.cpp.

References QList< T >::append(), cleanupNodeList, QListSpecialMethodsBase< T >::contains(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ cleanupNodes()

void QQuickWindowPrivate::cleanupNodes ( )

Definition at line 1972 of file qquickwindow.cpp.

References cleanupNodeList, and qDeleteAll().

Referenced by cleanupNodesOnShutdown(), and updateDirtyNodes().

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

◆ cleanupNodesOnShutdown()

void QQuickWindowPrivate::cleanupNodesOnShutdown ( )

Definition at line 2012 of file qquickwindow.cpp.

References animationController, QSet< T >::begin(), cleanupNodes(), cleanupNodesOnShutdown(), contentItem, QSet< T >::end(), it, parentlessItems, and QQuickAnimatorController::windowNodesDestroyed().

Referenced by cleanupNodesOnShutdown(), QSGSoftwareRenderThread::event(), QSGRhiSupport::grabOffscreen(), QQuickRenderControl::invalidate(), QSGRenderThread::invalidateGraphics(), QSGRenderThread::teardownGraphics(), and QQuickRenderControlPrivate::windowDestroyed().

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

◆ clearFocusInScope()

void QQuickWindowPrivate::clearFocusInScope ( QQuickItem * scope,
QQuickItem * item,
Qt::FocusReason reason )
inline

Definition at line 251 of file qquickwindow_p.h.

References item.

◆ clearFocusObject()

void QQuickWindowPrivate::clearFocusObject ( )
overridevirtual

Reimplemented from QWindowPrivate.

Definition at line 1851 of file qquickwindow.cpp.

References deliveryAgentPrivate().

+ Here is the call graph for this function:

◆ clearGrabbers()

void QQuickWindowPrivate::clearGrabbers ( QPointerEvent * pointerEvent)

Clears all exclusive and passive grabs for the points in pointerEvent.

We never allow any kind of grab to persist after release, unless we're waiting for a synth event from QtGui (as with most tablet events), so for points that are fully released, the grab is cleared.

Called when QQuickWindow::event dispatches events, or when the QQuickOverlay has filtered an event so that it bypasses normal delivery.

Definition at line 1413 of file qquickwindow.cpp.

References Qt::AA_SynthesizeMouseForUnhandledTabletEvents, QPointerEvent::clearPassiveGrabbers(), QPointerEvent::isEndEvent(), QEvent::isSinglePointEvent(), QQuickDeliveryAgentPrivate::isTabletEvent(), Qt::NoButton, QWindowSystemInterfacePrivate::TabletEvent::platformSynthesizesMouse, QPointerEvent::point(), QPointerEvent::points(), qApp, QEventPoint::Released, and QPointerEvent::setExclusiveGrabber().

+ Here is the call graph for this function:

◆ createTextureFromNativeTexture() [1/2]

QSGTexture * QQuickWindowPrivate::createTextureFromNativeTexture ( quint64 nativeObjectHandle,
int nativeLayoutOrState,
const QSize & size,
QQuickWindow::CreateTextureOptions options,
TextureFromNativeTextureFlags flags = {} ) const
inline

Definition at line 178 of file qquickwindow_p.h.

◆ createTextureFromNativeTexture() [2/2]

QSGTexture * QQuickWindowPrivate::createTextureFromNativeTexture ( quint64 nativeObjectHandle,
int nativeLayoutOrState,
uint nativeFormat,
const QSize & size,
QQuickWindow::CreateTextureOptions options,
TextureFromNativeTextureFlags flags = {} ) const

Definition at line 3242 of file qquickwindow.cpp.

References rhi, and QSGPlainTexture::setTextureFromNativeTexture().

+ Here is the call graph for this function:

◆ data()

QQmlListProperty< QObject > QQuickWindowPrivate::data ( )

Definition at line 867 of file qquickwindow.cpp.

References data_append(), data_at(), data_clear(), data_count(), data_removeLast(), and data_replace().

+ Here is the call graph for this function:

◆ data_append()

void QQuickWindowPrivate::data_append ( QQmlListProperty< QObject > * property,
QObject * o )
static

\qmlproperty list<QtObject> Window::data \qmldefault

The data property allows you to freely mix visual children, resources and other Windows in a Window.

If you assign another Window to the data list, the nested window will become "transient for" the outer Window.

If you assign an \l Item to the data list, it becomes a child of the Window's \l contentItem, so that it appears inside the window. The item's parent will be the window's contentItem, which is the root of the Item ownership tree within that Window.

If you assign any other object type, it is added as a resource.

It should not generally be necessary to refer to the data property, as it is the default property for Window and thus all child items are automatically assigned to this property.

See also
QWindow::transientParent()

Definition at line 1910 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), and o.

Referenced by data().

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

◆ data_at()

QObject * QQuickWindowPrivate::data_at ( QQmlListProperty< QObject > * property,
qsizetype i )
static

Definition at line 1928 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), i, and win.

Referenced by data().

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

◆ data_clear()

void QQuickWindowPrivate::data_clear ( QQmlListProperty< QObject > * property)
static

Definition at line 1935 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), and win.

Referenced by data().

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

◆ data_count()

qsizetype QQuickWindowPrivate::data_count ( QQmlListProperty< QObject > * property)
static

Definition at line 1919 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), and win.

Referenced by data().

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

◆ data_removeLast()

void QQuickWindowPrivate::data_removeLast ( QQmlListProperty< QObject > * property)
static

Definition at line 1949 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), and win.

Referenced by data().

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

◆ data_replace()

void QQuickWindowPrivate::data_replace ( QQmlListProperty< QObject > * property,
qsizetype i,
QObject * o )
static

Definition at line 1942 of file qquickwindow.cpp.

References QQuickItemPrivate::get(), i, o, and win.

Referenced by data().

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

◆ deliveryAgentPrivate()

QQuickDeliveryAgentPrivate * QQuickWindowPrivate::deliveryAgentPrivate ( ) const
inline

Definition at line 138 of file qquickwindow_p.h.

References QObjectPrivate::get().

Referenced by clearFocusObject(), QQuickMouseArea::itemChange(), QQuickRenderControl::polishItems(), polishItems(), QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), QSGSoftwareRenderLoop::renderWindow(), and setFocusToTarget().

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

◆ dirtyItem()

void QQuickWindowPrivate::dirtyItem ( QQuickItem * )

Definition at line 878 of file qquickwindow.cpp.

Referenced by polishItems().

+ Here is the caller graph for this function:

◆ dragOverThreshold() [1/2]

static bool QQuickWindowPrivate::dragOverThreshold ( qreal d,
Qt::Axis axis,
const QEventPoint * tp,
int startDragThreshold = -1 )
inlinestatic

Definition at line 247 of file qquickwindow_p.h.

References d, and QQuickDeliveryAgentPrivate::dragOverThreshold().

Referenced by QQuickDrawerPrivate::grabMouse(), QQuickSwipeDelegatePrivate::handleMouseMoveEvent(), QQuickSwitch::mouseMoveEvent(), and QQuickSwitchDelegate::mouseMoveEvent().

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

◆ dragOverThreshold() [2/2]

static bool QQuickWindowPrivate::dragOverThreshold ( qreal d,
Qt::Axis axis,
QMouseEvent * event,
int startDragThreshold = -1 )
inlinestatic

Definition at line 249 of file qquickwindow_p.h.

References d, and QQuickDeliveryAgentPrivate::dragOverThreshold().

+ Here is the call graph for this function:

◆ emitAfterRenderPassRecording()

void QQuickWindowPrivate::emitAfterRenderPassRecording ( void * ud)
static

Definition at line 605 of file qquickwindow.cpp.

References emit.

◆ emitBeforeRenderPassRecording()

void QQuickWindowPrivate::emitBeforeRenderPassRecording ( void * ud)
static

Definition at line 599 of file qquickwindow.cpp.

References emit.

◆ emitError()

bool QQuickWindowPrivate::emitError ( QQuickWindow::SceneGraphError error,
const QString & msg )

Definition at line 2341 of file qquickwindow.cpp.

References emit, error, and QMetaMethod::fromSignal().

+ Here is the call graph for this function:

◆ ensureCustomRenderTarget()

void QQuickWindowPrivate::ensureCustomRenderTarget ( )

Definition at line 522 of file qquickwindow.cpp.

References QQuickRenderTargetPrivate::get(), QQuickWindowRenderTarget::KeepImplicitBuffers, qWarning, and resolve().

+ Here is the call graph for this function:

◆ fireAboutToStop()

void QQuickWindowPrivate::fireAboutToStop ( )
inline

Definition at line 204 of file qquickwindow_p.h.

References Q_EMIT.

Referenced by QSGOpenVGRenderLoop::hide(), QSGSoftwareRenderLoop::hide(), QSGGuiThreadRenderLoop::hide(), and QQuickRenderControl::invalidate().

+ Here is the caller graph for this function:

◆ fireFrameSwapped()

void QQuickWindowPrivate::fireFrameSwapped ( )
inline

Definition at line 203 of file qquickwindow_p.h.

References Q_EMIT.

Referenced by QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), QSGSoftwareRenderLoop::renderWindow(), and QSGSoftwareRenderThread::syncAndRender().

+ Here is the caller graph for this function:

◆ forcePolish()

void QQuickWindowPrivate::forcePolish ( )

Schedules polish events on all items in the scene.

Definition at line 459 of file qquickwindow.cpp.

References contentItem, and forcePolishHelper().

+ Here is the call graph for this function:

◆ get() [1/2]

static const QQuickWindowPrivate * QQuickWindowPrivate::get ( const QQuickWindow * c)
inlinestatic

Definition at line 120 of file qquickwindow_p.h.

◆ get() [2/2]

static QQuickWindowPrivate * QQuickWindowPrivate::get ( QQuickWindow * c)
inlinestatic

Definition at line 119 of file qquickwindow_p.h.

Referenced by QQuick3DWindowAttachment::QQuick3DWindowAttachment(), QQuickRenderControl::~QQuickRenderControl(), QQuickItemPrivate::addToDirtyList(), QQuick3DLightmapBaker::bake(), QSGRenderLoop::cleanup(), QQuickContainerPrivate::cleanup(), QQuickDeliveryAgentPrivate::clearFocusInScope(), QQuickItem::componentComplete(), QSGRhiSupport::createRhi(), QSGCompressedTextureFactory::createTexture(), QQuickDragAttachedPrivate::deliverEvent(), QQuickItemPrivate::deliveryAgent(), QQuickItemPrivate::derefWindow(), QQuickItemPrivate::dirty(), QQuickShapeGenericRenderer::endSync(), QSGRenderThread::ensureRhi(), QSGGuiThreadRenderLoop::ensureRhi(), QSGRenderThread::event(), QSGSoftwareRenderThread::event(), QQuickDeliveryAgent::event(), QQuickWindowContainer::eventFilter(), QQuickOverlay::eventFilter(), QSGGuiThreadRenderLoop::exposureChanged(), QSGThreadedRenderLoop::exposureChanged(), QQuickTouchUtils::flush(), QQuickDeliveryAgentPrivate::flushFrameSynchronousEvents(), QSGSoftwareContext::getResource(), QSGDefaultContext::getResource(), QQuickRenderControlPrivate::grab(), QSGThreadedRenderLoop::grab(), QSGSoftwareThreadedRenderLoop::grab(), QSGGuiThreadRenderLoop::grab(), QSGRhiSupport::grabOffscreen(), QSGRenderLoop::handleContextCreationFailure(), QSGGuiThreadRenderLoop::handleDeviceLoss(), QQuickDeliveryAgentPrivate::handleMouseEvent(), QQuickShaderEffectPrivate::handleUpdatePaintNode(), QSGThreadedRenderLoop::handleUpdateRequest(), QSGOpenVGRenderLoop::hide(), QSGSoftwareRenderLoop::hide(), QSGGuiThreadRenderLoop::hide(), QQuickRenderControl::initialize(), QQuickRenderControl::invalidate(), QSGRenderThread::invalidateGraphics(), QQuickRenderControlPrivate::isRenderWindowFor(), QQuickMouseArea::itemChange(), QQuickCanvasItem::itemChange(), QSGGuiThreadRenderLoop::maybeUpdate(), QQuickItem::polish(), QQuickRenderControl::polishItems(), QQuickDesignerSupport::polishItems(), QSGRenderLoop::postJob(), QQuickRenderControl::prepareThread(), QSGRhiSupport::prepareWindowForRhi(), QQuickTest::qIsPolishScheduled(), QQuickTest::qWaitForPolish(), QQuickDesignerSupport::refFromEffectItem(), QQuickItemPrivate::refWindow(), QSGGuiThreadRenderLoop::releaseResources(), QSGGuiThreadRenderLoop::releaseSwapchain(), QQuickRenderControl::render(), QQuickWidgetPrivate::render(), QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), QSGSoftwareRenderLoop::renderWindow(), QQuickRenderControl::renderWindowFor(), QQuickWidgetPrivate::rhiConfig(), QSGRhiSupport::rifResource(), setActiveFocus(), QQuickMenuPrivate::setCurrentIndex(), QQuickDeliveryAgentPrivate::setFocusInScope(), QQuickItem::setParentItem(), QQuickRenderControl::sync(), QSGSoftwareRenderThread::sync(), QSGRenderThread::sync(), QSGSoftwareRenderThread::syncAndRender(), QSGRenderThread::syncAndRender(), QSGGuiThreadRenderLoop::teardownGraphics(), QSGRenderThread::teardownGraphics(), QQuickCanvasItem::textureProvider(), QQuickFramebufferObject::textureProvider(), QQuickDesignerSupport::updateDirtyNode(), QQuickCanvasItem::updatePaintNode(), QQuickShaderEffectPrivate::updateUniformValue(), QQuickRenderControlPrivate::windowDestroyed(), QSGOpenVGRenderLoop::windowDestroyed(), QSGSoftwareRenderLoop::windowDestroyed(), and QSGGuiThreadRenderLoop::windowDestroyed().

◆ init()

◆ invalidateFontData()

void QQuickWindowPrivate::invalidateFontData ( QQuickItem * item)

Definition at line 511 of file qquickwindow.cpp.

References child, QGraphicsItem::childItems(), and item.

+ Here is the call graph for this function:

◆ isRenderable()

bool QQuickWindowPrivate::isRenderable ( ) const

Definition at line 1956 of file qquickwindow.cpp.

Referenced by QSGGuiThreadRenderLoop::maybeUpdate(), QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), and QSGSoftwareRenderLoop::renderWindow().

+ Here is the caller graph for this function:

◆ multiViewCount()

int QQuickWindowPrivate::multiViewCount ( )

Definition at line 611 of file qquickwindow.cpp.

◆ openglContext()

QOpenGLContext * QQuickWindowPrivate::openglContext ( )

Definition at line 2378 of file qquickwindow.cpp.

References context, QSGRenderContext::isValid(), QSGRendererInterface::OpenGLContextResource, QSGContext::rendererInterface(), and QSGRenderContext::sceneGraphContext().

+ Here is the call graph for this function:

◆ polishItems()

◆ renderSceneGraph()

void QQuickWindowPrivate::renderSceneGraph ( )

Definition at line 635 of file qquickwindow.cpp.

References cb, context, emit, QSGAbstractRenderer::MatrixTransformFlipY, QQuickWindowRenderTarget::multiViewCount, QCoreApplication::postEvent(), qWarning, rect, renderer, and QQuickWindowRenderTarget::rt.

Referenced by QSGRenderThread::event(), QSGSoftwareRenderThread::event(), QSGGuiThreadRenderLoop::grab(), QSGRhiSupport::grabOffscreen(), QQuickRenderControl::render(), QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), QSGSoftwareRenderLoop::renderWindow(), and QSGSoftwareRenderThread::syncAndRender().

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

◆ rhiCreationFailureMessage()

void QQuickWindowPrivate::rhiCreationFailureMessage ( const QString & backendName,
QString * translatedMessage,
QString * untranslatedMessage )
static

Definition at line 1962 of file qquickwindow.cpp.

References backendName, QString::fromLatin1(), and QT_TRANSLATE_NOOP.

Referenced by QQuickWidgetPrivate::handleContextCreationFailure(), and QSGRenderLoop::handleContextCreationFailure().

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

◆ runAndClearJobs()

void QQuickWindowPrivate::runAndClearJobs ( QList< QRunnable * > * jobs)

Definition at line 3989 of file qquickwindow.cpp.

References QMutex::lock(), renderJobMutex, and QMutex::unlock().

+ Here is the call graph for this function:

◆ setCustomCommandBuffer()

void QQuickWindowPrivate::setCustomCommandBuffer ( QRhiCommandBuffer * cb)

Definition at line 539 of file qquickwindow.cpp.

References cb.

Referenced by QSGRhiSupport::grabOffscreen(), QQuickRenderControl::render(), and QQuickRenderControl::sync().

+ Here is the caller graph for this function:

◆ setFocusToTarget()

void QQuickWindowPrivate::setFocusToTarget ( QWindowPrivate::FocusTarget target)
override

Definition at line 1857 of file qquickwindow.cpp.

References Qt::ActiveWindowFocusReason, contentItem, deliveryAgentPrivate(), QWindowPrivate::First, QWindowPrivate::Last, QWindowPrivate::Next, QQuickItemPrivate::nextPrevItemInTabFocusChain(), QWindowPrivate::Prev, and Q_ASSERT.

+ Here is the call graph for this function:

◆ setPalette()

void QQuickWindowPrivate::setPalette ( QQuickPalette * p)
overridevirtual

Set new palette. Doesn't transfer ownership.

Reimplemented from QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >.

Definition at line 754 of file qquickwindow.cpp.

References QQuickColorGroup::changed(), QObjectPrivate::connect(), disconnect(), QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >::palette(), updateWindowPalette(), and windowPaletteRef.

+ Here is the call graph for this function:

◆ syncSceneGraph()

void QQuickWindowPrivate::syncSceneGraph ( )

Definition at line 545 of file qquickwindow.cpp.

References QSGNode::appendChildNode(), cb, QFont::cleanup(), context, emit, forceUpdate(), QQuickItemPrivate::get(), renderer, QSGRendererInterface::RenderMode2D, and QSGRendererInterface::RenderMode2DNoDepthBuffer.

Referenced by QSGRenderThread::event(), QSGSoftwareRenderThread::event(), QQuickRenderControlPrivate::grab(), QSGGuiThreadRenderLoop::grab(), QSGRhiSupport::grabOffscreen(), QSGOpenVGRenderLoop::renderWindow(), QSGGuiThreadRenderLoop::renderWindow(), QSGSoftwareRenderLoop::renderWindow(), QQuickRenderControl::sync(), and QSGSoftwareRenderThread::sync().

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

◆ updateChildrenPalettes()

void QQuickWindowPrivate::updateChildrenPalettes ( const QPalette & parentPalette)
overridevirtual

Updates children palettes. The default implementation invokes inheritPalette for all visual children.

This function is also called when palette is changed (signal changed() is emitted).

Reimplemented from QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >.

Definition at line 772 of file qquickwindow.cpp.

References child, QQuickItemPrivate::get(), and QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >::parentPalette().

Referenced by QQuickApplicationWindowPrivate::updateChildrenPalettes().

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

◆ updateChildWindowStackingOrder()

void QQuickWindowPrivate::updateChildWindowStackingOrder ( QQuickItem * item = nullptr)

Definition at line 1671 of file qquickwindow.cpp.

References child, contentItem, QQuickItemPrivate::get(), item, qCDebug, updateChildWindowStackingOrder(), and window().

Referenced by polishItems(), and updateChildWindowStackingOrder().

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

◆ updateDirtyNode()

◆ updateDirtyNodes()

void QQuickWindowPrivate::updateDirtyNodes ( )

Definition at line 2023 of file qquickwindow.cpp.

References cleanupNodes(), dirtyItemList, QQuickItemPrivate::get(), item, qCDebug, qPrintable, and updateDirtyNode().

+ Here is the call graph for this function:

◆ updateEffectiveOpacity()

bool QQuickWindowPrivate::updateEffectiveOpacity ( QQuickItem * )

◆ updateEffectiveOpacityRoot()

void QQuickWindowPrivate::updateEffectiveOpacityRoot ( QQuickItem * ,
qreal  )

◆ updateWindowPalette()

void QQuickWindowPrivate::updateWindowPalette ( )

Definition at line 767 of file qquickwindow.cpp.

References QQuickPaletteProviderPrivateBase< I, Impl >::setPalette(), and windowPaletteRef.

Referenced by setPalette().

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

Member Data Documentation

◆ afterRenderingJobs

QList<QRunnable *> QQuickWindowPrivate::afterRenderingJobs

Definition at line 274 of file qquickwindow_p.h.

◆ afterSwapJobs

QList<QRunnable *> QQuickWindowPrivate::afterSwapJobs

Definition at line 275 of file qquickwindow_p.h.

◆ afterSynchronizingJobs

QList<QRunnable *> QQuickWindowPrivate::afterSynchronizingJobs

Definition at line 272 of file qquickwindow_p.h.

◆ animationController

◆ beforeRenderingJobs

QList<QRunnable *> QQuickWindowPrivate::beforeRenderingJobs

Definition at line 273 of file qquickwindow_p.h.

◆ beforeSynchronizingJobs

QList<QRunnable *> QQuickWindowPrivate::beforeSynchronizingJobs

Definition at line 271 of file qquickwindow_p.h.

◆ cleanupNodeList

QList<QSGNode *> QQuickWindowPrivate::cleanupNodeList

Definition at line 189 of file qquickwindow_p.h.

Referenced by cleanup(), and cleanupNodes().

◆ clearColor

QColor QQuickWindowPrivate::clearColor

Definition at line 221 of file qquickwindow_p.h.

◆ contentItem

◆ context

◆ customDeviceObjects

QQuickGraphicsDevice QQuickWindowPrivate::customDeviceObjects

Definition at line 237 of file qquickwindow_p.h.

Referenced by QSGRhiSupport::createRhi().

◆ customRenderTarget

QQuickRenderTarget QQuickWindowPrivate::customRenderTarget

Definition at line 229 of file qquickwindow_p.h.

◆ defaultAlphaBuffer

QT_BEGIN_NAMESPACE bool QQuickWindowPrivate::defaultAlphaBuffer = false
static

Definition at line 243 of file qquickwindow_p.h.

◆ deliveryAgent

QQuickDeliveryAgent* QQuickWindowPrivate::deliveryAgent = nullptr

Definition at line 137 of file qquickwindow_p.h.

Referenced by ~QQuickWindowPrivate(), and init().

◆ depthStencilForSwapchain

QRhiRenderBuffer* QQuickWindowPrivate::depthStencilForSwapchain = nullptr

◆ dirtyItemList

QQuickItem* QQuickWindowPrivate::dirtyItemList

Definition at line 188 of file qquickwindow_p.h.

Referenced by updateDirtyNodes().

◆ graphicsConfig

◆ hasActiveSwapchain

◆ hasRenderableSwapchain

◆ incubationController

QQuickWindowIncubationController* QQuickWindowPrivate::incubationController
mutable

Definition at line 241 of file qquickwindow_p.h.

◆ inDestructor

uint QQuickWindowPrivate::inDestructor

Definition at line 225 of file qquickwindow_p.h.

Referenced by ~QQuickWindowPrivate().

◆ itemsToPolish

QVector<QQuickItem *> QQuickWindowPrivate::itemsToPolish

Definition at line 191 of file qquickwindow_p.h.

Referenced by polishItems().

◆ lastReportedItemDevicePixelRatio

qreal QQuickWindowPrivate::lastReportedItemDevicePixelRatio

Definition at line 193 of file qquickwindow_p.h.

Referenced by init().

◆ parentlessItems

QSet<QQuickItem *> QQuickWindowPrivate::parentlessItems

Definition at line 132 of file qquickwindow_p.h.

Referenced by cleanupNodesOnShutdown().

◆ pendingFontUpdate

bool QQuickWindowPrivate::pendingFontUpdate = false

Definition at line 289 of file qquickwindow_p.h.

◆ persistentGraphics

uint QQuickWindowPrivate::persistentGraphics

Definition at line 223 of file qquickwindow_p.h.

◆ persistentSceneGraph

uint QQuickWindowPrivate::persistentSceneGraph

Definition at line 224 of file qquickwindow_p.h.

◆ physicalDpiChangedConnection

QMetaObject::Connection QQuickWindowPrivate::physicalDpiChangedConnection

Definition at line 194 of file qquickwindow_p.h.

◆ redirect

struct QQuickWindowPrivate::Redirect QQuickWindowPrivate::redirect

Referenced by ~QQuickWindowPrivate().

◆ renderControl

◆ renderer

◆ renderJobMutex

QMutex QQuickWindowPrivate::renderJobMutex

Definition at line 270 of file qquickwindow_p.h.

Referenced by runAndClearJobs().

◆ rhi

◆ rhiStateInfo

QQuickWindow::GraphicsStateInfo QQuickWindowPrivate::rhiStateInfo

Definition at line 280 of file qquickwindow_p.h.

◆ rpDescForSwapchain

◆ swapchain

◆ swapchainJustBecameRenderable

◆ textRenderType

QQuickWindow::TextRenderType QQuickWindowPrivate::textRenderType = QQuickWindow::QtTextRendering
static

Definition at line 244 of file qquickwindow_p.h.

◆ updatePaintNodeData

QQuickItem::UpdatePaintNodeData QQuickWindowPrivate::updatePaintNodeData

Definition at line 186 of file qquickwindow_p.h.

Referenced by updateDirtyNode().

◆ updatesEnabled

uint QQuickWindowPrivate::updatesEnabled

Definition at line 288 of file qquickwindow_p.h.

Referenced by QSGGuiThreadRenderLoop::renderWindow().

◆ visualizationMode

QByteArray QQuickWindowPrivate::visualizationMode

Definition at line 215 of file qquickwindow_p.h.

Referenced by init().

◆ windowEventDispatch

bool QQuickWindowPrivate::windowEventDispatch = false

Definition at line 290 of file qquickwindow_p.h.

◆ windowManager

QSGRenderLoop* QQuickWindowPrivate::windowManager

Definition at line 217 of file qquickwindow_p.h.

Referenced by QSGRenderLoop::cleanup(), and init().

◆ windowPaletteRef

QPointer<QQuickPalette> QQuickWindowPrivate::windowPaletteRef

Definition at line 291 of file qquickwindow_p.h.

Referenced by setPalette(), and updateWindowPalette().


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