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
qquickwindow.cpp File Reference

(0d1422b738fd164cfb075752ec69807b15c1bf49)

#include "qquickwindow.h"
#include "qquickwindow_p.h"
#include "qquickitem.h"
#include "qquickitem_p.h"
#include "qquickevents_p_p.h"
#include "qquickgraphicsdevice_p.h"
#include "qquickwindowcontainer_p.h"
#include <QtQuick/private/qsgrenderer_p.h>
#include <QtQuick/private/qsgplaintexture_p.h>
#include <QtQuick/private/qquickpointerhandler_p.h>
#include <QtQuick/private/qquickpointerhandler_p_p.h>
#include <private/qsgrenderloop_p.h>
#include <private/qsgrhisupport_p.h>
#include <private/qquickrendercontrol_p.h>
#include <private/qquickanimatorcontroller_p.h>
#include <private/qquickprofiler_p.h>
#include <private/qquicktextinterface_p.h>
#include <private/qguiapplication_p.h>
#include <private/qabstractanimation_p.h>
#include <QtGui/qpainter.h>
#include <QtGui/qevent.h>
#include <QtGui/qmatrix4x4.h>
#include <QtGui/private/qevent_p.h>
#include <QtGui/private/qpointingdevice_p.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qabstractanimation.h>
#include <QtCore/QLibraryInfo>
#include <QtCore/QRunnable>
#include <QtQml/qqmlincubator.h>
#include <QtQml/qqmlinfo.h>
#include <QtQml/private/qqmlmetatype_p.h>
#include <QtQuick/private/qquickpixmap_p.h>
#include <private/qqmldebugserviceinterfaces_p.h>
#include <private/qqmldebugconnector_p.h>
#include <private/qsgdefaultrendercontext_p.h>
#include <private/qdebug_p.h>
#include <QtCore/qpointer.h>
#include <rhi/qrhi.h>
#include <utility>
#include <mutex>
#include "qquickwindow.moc"
#include "moc_qquickwindow_p.cpp"
#include "moc_qquickwindow.cpp"
+ Include dependency graph for qquickwindow.cpp:

Go to the source code of this file.

Classes

class  QQuickWindowIncubationController
 
struct  PolishLoopDetector
 

Functions

static const QQuickItemfirstItemWithDirtyChildrenStacking (const QQuickItem *item)
 
static void updatePixelRatioHelper (QQuickItem *item, float pixelRatio)
 
void forcePolishHelper (QQuickItem *item)
 
void forceUpdate (QQuickItem *item)
 
static QSGNodeqquickitem_before_paintNode (QQuickItemPrivate *d)
 
static QSGNodefetchNextNode (QQuickItemPrivate *itemPriv, int &ii, bool &returnedPaintNode)
 
QDebug operator<< (QDebug debug, const QQuickWindow *win)
 

Function Documentation

◆ fetchNextNode()

static QSGNode * fetchNextNode ( QQuickItemPrivate * itemPriv,
int & ii,
bool & returnedPaintNode )
static

Definition at line 2068 of file qquickwindow.cpp.

References QQuickItemPrivate::get().

Referenced by QQuickWindowPrivate::updateDirtyNode().

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

◆ firstItemWithDirtyChildrenStacking()

static const QQuickItem * firstItemWithDirtyChildrenStacking ( const QQuickItem * item)
static

Definition at line 336 of file qquickwindow.cpp.

References QGraphicsItem::childItems(), QQuickItemPrivate::ChildrenStackingChanged, firstItemWithDirtyChildrenStacking(), QQuickItemPrivate::get(), and item.

Referenced by firstItemWithDirtyChildrenStacking(), and QQuickWindowPrivate::polishItems().

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

◆ forcePolishHelper()

void forcePolishHelper ( QQuickItem * item)

Definition at line 438 of file qquickwindow.cpp.

References QList< T >::at(), QGraphicsItem::childItems(), QGraphicsItem::flags(), forcePolishHelper(), i, item, QQuickItem::ItemHasContents, items, and QList< T >::size().

Referenced by QQuickWindowPrivate::forcePolish(), and forcePolishHelper().

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

◆ forceUpdate()

void forceUpdate ( QQuickItem * item)

Definition at line 467 of file qquickwindow.cpp.

References QList< T >::at(), QGraphicsItem::childItems(), QQuickItemPrivate::ChildrenUpdateMask, QGraphicsItem::flags(), forceUpdate(), QQuickItemPrivate::get(), i, item, QQuickItem::ItemHasContents, items, QList< T >::size(), and QGraphicsItem::update().

Referenced by QRhiGles2::executeBindGraphicsPipeline(), forceUpdate(), QWidgetPrivate::setLocale_helper(), QQuickWindowPrivate::syncSceneGraph(), QQuickMultiEffectPrivate::updateBlurItemSizes(), QQuickMultiEffectPrivate::updateBlurLevel(), and QWidgetPrivate::updateGeometry_helper().

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

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QQuickWindow * win )
\since 6.0
\qmlproperty Palette Window::palette

This property holds the palette currently set for the window.

The default palette depends on the system environment. QGuiApplication maintains a system/theme
palette which serves as a default for all application windows. You can also set the default palette
for windows by passing a custom palette to QGuiApplication::setPalette(), before loading any QML.

Window propagates explicit palette properties to child items and controls,
overriding any system defaults for that property.

\snippet qml/windowPalette.qml entire

\sa Item::palette, Popup::palette, ColorGroup, SystemPalette

! internal

See also
QQuickAbstractPaletteProvider, QQuickPalette

Definition at line 4498 of file qquickwindow.cpp.

References debug, QtDebugUtils::formatQRect(), QWidget::geometry, QString::isEmpty(), QObject::objectName, QObject::parent(), and win.

+ Here is the call graph for this function:

◆ qquickitem_before_paintNode()

static QSGNode * qquickitem_before_paintNode ( QQuickItemPrivate * d)
inlinestatic

Definition at line 2053 of file qquickwindow.cpp.

References d, QQuickItemPrivate::explicitVisible, QQuickItemPrivate::extra, QQuickItemPrivate::get(), i, Q_UNLIKELY, and QQuickItemPrivate::z().

Referenced by QQuickWindowPrivate::updateDirtyNode().

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

◆ updatePixelRatioHelper()

static void updatePixelRatioHelper ( QQuickItem * item,
float pixelRatio )
static

Definition at line 408 of file qquickwindow.cpp.

References QList< T >::at(), QGraphicsItem::childItems(), QGraphicsItem::flags(), QQuickItemPrivate::get(), i, item, QQuickItemPrivate::itemChange(), QQuickItem::ItemDevicePixelRatioHasChanged, QQuickItem::ItemHasContents, items, QList< T >::size(), and updatePixelRatioHelper().

Referenced by updatePixelRatioHelper().

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