Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickApplicationWindowPrivate Class Reference

#include <qquickapplicationwindow_p_p.h>

Inheritance diagram for QQuickApplicationWindowPrivate:
Collaboration diagram for QQuickApplicationWindowPrivate:

Public Member Functions

QQmlListProperty< QObjectcontentData ()
 \qmlproperty list<QtObject> QtQuick.Controls::ApplicationWindow::contentData \qmldefault
void updateHasBackgroundFlags ()
void relayout ()
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
void itemVisibilityChanged (QQuickItem *item) override
void itemImplicitWidthChanged (QQuickItem *item) override
void itemImplicitHeightChanged (QQuickItem *item) override
QPalette windowPalette () const override
void updateFont (const QFont &f)
void setFont_helper (const QFont &f)
void resolveFont ()
void _q_updateActiveFocus ()
void setActiveFocusControl (QQuickItem *item)
void cancelBackground ()
void executeBackground (bool complete=false)
QPalette defaultPalette () const override
void updateChildrenPalettes (const QPalette &parentPalette) override
Public Member Functions inherited from QQuickWindowQmlImplPrivate
 QQuickWindowQmlImplPrivate ()
Public Member Functions inherited from QQuickWindowPrivate
 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 (FocusTarget, Qt::FocusReason) override
void maybeSynthesizeContextMenuEvent (QMouseEvent *event) 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 updateChildWindowStackingOrder (QQuickItem *item=nullptr)
int multiViewCount ()
QRhiRenderTargetactiveCustomRhiRenderTarget ()
void runAndClearJobs (QList< QRunnable * > *jobs)
QOpenGLContextopenglContext ()
Public Member Functions inherited from QWindowPrivate
 QWindowPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
 ~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 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 QRectF closestAcceptableGeometry (const QRectF &rect) const
void setMinOrMaxSize (QSize *oldSizeMember, const QSize &size, qxp::function_ref< void()> funcWidthChanged, qxp::function_ref< void()> funcHeightChanged)
virtual bool participatesInLastWindowClosed () const
virtual bool treatAsVisible () const
const QWindowforwardToPopup (QEvent *event, const QWindow *activePopupOnPress)
bool isPopup () const
void setAutomaticPositionAndResizeEnabled (bool a)
bool updateDevicePixelRatio ()
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
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
const 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
Public Member Functions inherited from QSafeQuickItemChangeListener< QQuickApplicationWindowPrivate >
 ~QSafeQuickItemChangeListener () override
bool baseDeleted (const QObject *caller) const override
QString debugName () const override
Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
virtual void itemSiblingOrderChanged (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 itemFocusChanged (QQuickItem *, Qt::FocusReason)
virtual void itemScaleChanged (QQuickItem *)
virtual void itemTransformChanged (QQuickItem *, QQuickItem *)
virtual QQuickAnchorsPrivateanchorPrivate ()
virtual void addSourceItem (QQuickItem *)
virtual void removeSourceItem (QQuickItem *)

Static Public Member Functions

static QQuickApplicationWindowPrivateget (QQuickApplicationWindow *window)
static void contentData_append (QQmlListProperty< QObject > *prop, QObject *obj)
Static Public Member Functions inherited from QQuickWindowPrivate
static QQuickWindowPrivateget (QQuickWindow *c)
static const QQuickWindowPrivateget (const QQuickWindow *c)
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_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

QQuickDeferredPointer< QQuickItembackground
QQuickControlcontrol = nullptr
QQuickItemmenuBar = nullptr
QQuickItemheader = nullptr
QQuickItemfooter = nullptr
QFont font
QLocale locale
QQuickItemactiveFocusControl = nullptr
bool insideRelayout = false
bool hasBackgroundWidth = false
bool hasBackgroundHeight = false
Public Attributes inherited from QQuickWindowQmlImplPrivate
bool componentComplete = true
bool visible = false
bool visibleExplicitlySet = false
QQuickWindow::Visibility visibility = QQuickWindow::AutomaticVisibility
bool visibilityExplicitlySet = false
QV4::PersistentValue rootItemMarker
QMetaObject::Connection itemParentWindowChangeListener
QObjectvisualParent = nullptr
QPointer< QQuickWindowContainerwindowContainer
qreal z = 0.0
QQuickScreenInfoscreenInfo = nullptr
Public Attributes inherited from QQuickWindowPrivate
QQuickRootItemcontentItem
QSet< QQuickItem * > parentlessItems
QQuickDeliveryAgentdeliveryAgent = nullptr
QQuickItem::UpdatePaintNodeData updatePaintNodeData
QQuickItemdirtyItemList
QList< QSGNode * > cleanupNodeList
QVector< QQuickItem * > itemsToPolish
qreal lastReportedItemDevicePixelRatio
QMetaObject::Connection physicalDpiChangedConnection
std::array< QMetaObject::Connection, 7 > connections
bool needsChildWindowStackingOrderUpdate = false
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
bool rmbContextMenuEventEnabled = 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

Additional Inherited Members

Public Types inherited from QQuickWindowPrivate
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 Types inherited from QSafeQuickItemChangeListener< QQuickApplicationWindowPrivate >
using InDestructorTest
using WasDeletedTest
Static Public Attributes inherited from QQuickWindowPrivate
static bool defaultAlphaBuffer = false
static QQuickWindow::TextRenderType textRenderType = QQuickWindow::QtTextRendering
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >
void setCurrentColorGroup ()

Detailed Description

Definition at line 30 of file qquickapplicationwindow_p_p.h.

Member Function Documentation

◆ _q_updateActiveFocus()

void QQuickApplicationWindowPrivate::_q_updateActiveFocus ( )

Definition at line 252 of file qquickapplicationwindow.cpp.

◆ cancelBackground()

void QQuickApplicationWindowPrivate::cancelBackground ( )

Definition at line 276 of file qquickapplicationwindow.cpp.

◆ contentData()

QQmlListProperty< QObject > QQuickApplicationWindowPrivate::contentData ( )

\qmlproperty list<QtObject> QtQuick.Controls::ApplicationWindow::contentData \qmldefault

This default property holds the list of all objects declared as children of the window.

The data property allows you to freely mix visual children, resources and other windows in an ApplicationWindow.

If you assign an Item to the contentData list, it becomes a child of the window's contentItem, so that it appears inside the window. The item's parent will be the window's \l contentItem.

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

See also
contentItem

Definition at line 524 of file qquickapplicationwindow.cpp.

◆ contentData_append()

void QQuickApplicationWindowPrivate::contentData_append ( QQmlListProperty< QObject > * prop,
QObject * obj )
static

Definition at line 267 of file qquickapplicationwindow.cpp.

◆ defaultPalette()

QPalette QQuickApplicationWindowPrivate::defaultPalette ( ) const
inlineoverridevirtual

Implements QQuickAbstractPaletteProvider.

Definition at line 69 of file qquickapplicationwindow_p_p.h.

◆ executeBackground()

void QQuickApplicationWindowPrivate::executeBackground ( bool complete = false)

Definition at line 282 of file qquickapplicationwindow.cpp.

◆ get()

QQuickApplicationWindowPrivate * QQuickApplicationWindowPrivate::get ( QQuickApplicationWindow * window)
inlinestatic

Definition at line 37 of file qquickapplicationwindow_p_p.h.

◆ itemGeometryChanged()

void QQuickApplicationWindowPrivate::itemGeometryChanged ( QQuickItem * item,
QQuickGeometryChange change,
const QRectF & diff )
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 181 of file qquickapplicationwindow.cpp.

◆ itemImplicitHeightChanged()

void QQuickApplicationWindowPrivate::itemImplicitHeightChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 206 of file qquickapplicationwindow.cpp.

◆ itemImplicitWidthChanged()

void QQuickApplicationWindowPrivate::itemImplicitWidthChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 200 of file qquickapplicationwindow.cpp.

◆ itemVisibilityChanged()

void QQuickApplicationWindowPrivate::itemVisibilityChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 194 of file qquickapplicationwindow.cpp.

◆ relayout()

void QQuickApplicationWindowPrivate::relayout ( )

Definition at line 140 of file qquickapplicationwindow.cpp.

◆ resolveFont()

void QQuickApplicationWindowPrivate::resolveFont ( )

Definition at line 228 of file qquickapplicationwindow.cpp.

◆ setActiveFocusControl()

void QQuickApplicationWindowPrivate::setActiveFocusControl ( QQuickItem * item)

Definition at line 258 of file qquickapplicationwindow.cpp.

◆ setFont_helper()

void QQuickApplicationWindowPrivate::setFont_helper ( const QFont & f)
inline

Definition at line 54 of file qquickapplicationwindow_p_p.h.

◆ updateChildrenPalettes()

void QQuickApplicationWindowPrivate::updateChildrenPalettes ( const QPalette & parentPalette)
inlineoverridevirtual

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 70 of file qquickapplicationwindow_p_p.h.

◆ updateFont()

void QQuickApplicationWindowPrivate::updateFont ( const QFont & f)

Definition at line 212 of file qquickapplicationwindow.cpp.

◆ updateHasBackgroundFlags()

void QQuickApplicationWindowPrivate::updateHasBackgroundFlags ( )

Definition at line 130 of file qquickapplicationwindow.cpp.

◆ windowPalette()

QPalette QQuickApplicationWindowPrivate::windowPalette ( ) const
inlineoverridevirtual

Reimplemented from QWindowPrivate.

Definition at line 51 of file qquickapplicationwindow_p_p.h.

Member Data Documentation

◆ activeFocusControl

QQuickItem* QQuickApplicationWindowPrivate::activeFocusControl = nullptr

Definition at line 93 of file qquickapplicationwindow_p_p.h.

◆ background

QQuickDeferredPointer<QQuickItem> QQuickApplicationWindowPrivate::background

Definition at line 86 of file qquickapplicationwindow_p_p.h.

◆ control

QQuickControl* QQuickApplicationWindowPrivate::control = nullptr

Definition at line 87 of file qquickapplicationwindow_p_p.h.

◆ font

QFont QQuickApplicationWindowPrivate::font

Definition at line 91 of file qquickapplicationwindow_p_p.h.

◆ footer

QQuickItem* QQuickApplicationWindowPrivate::footer = nullptr

Definition at line 90 of file qquickapplicationwindow_p_p.h.

◆ hasBackgroundHeight

bool QQuickApplicationWindowPrivate::hasBackgroundHeight = false

Definition at line 96 of file qquickapplicationwindow_p_p.h.

◆ hasBackgroundWidth

bool QQuickApplicationWindowPrivate::hasBackgroundWidth = false

Definition at line 95 of file qquickapplicationwindow_p_p.h.

◆ header

QQuickItem* QQuickApplicationWindowPrivate::header = nullptr

Definition at line 89 of file qquickapplicationwindow_p_p.h.

◆ insideRelayout

bool QQuickApplicationWindowPrivate::insideRelayout = false

Definition at line 94 of file qquickapplicationwindow_p_p.h.

◆ locale

QLocale QQuickApplicationWindowPrivate::locale

Definition at line 92 of file qquickapplicationwindow_p_p.h.

◆ menuBar

QQuickItem* QQuickApplicationWindowPrivate::menuBar = nullptr

Definition at line 88 of file qquickapplicationwindow_p_p.h.


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