![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickwindow_p.h>
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> |
Static Public Member Functions | |
| static QQuickWindowPrivate * | get (QQuickWindow *c) |
| static const QQuickWindowPrivate * | get (const QQuickWindow *c) |
| static void | data_append (QQmlListProperty< QObject > *, QObject *) |
| \qmlproperty list<QtObject> Window::data \qmldefault | |
| static qsizetype | data_count (QQmlListProperty< QObject > *) |
| static QObject * | data_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 QWindowPrivate * | get (QWindow *window) |
| static Qt::WindowState | effectiveState (Qt::WindowStates) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (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) |
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 () |
Definition at line 108 of file qquickwindow_p.h.
| Enumerator | |
|---|---|
| FullUpdateRequest | |
| TriggerContextCreationFailure | |
Definition at line 115 of file qquickwindow_p.h.
| Enumerator | |
|---|---|
| NativeTextureIsExternalOES | |
Definition at line 170 of file qquickwindow_p.h.
| QQuickWindowPrivate::QQuickWindowPrivate | ( | ) |
Definition at line 709 of file qquickwindow.cpp.
|
override |
Definition at line 729 of file qquickwindow.cpp.
| QRhiRenderTarget * QQuickWindowPrivate::activeCustomRhiRenderTarget | ( | ) |
Definition at line 610 of file qquickwindow.cpp.
Definition at line 912 of file qquickwindow.cpp.
| void QQuickWindowPrivate::cleanupNodes | ( | ) |
Definition at line 2053 of file qquickwindow.cpp.
| void QQuickWindowPrivate::cleanupNodesOnShutdown | ( | ) |
Definition at line 2094 of file qquickwindow.cpp.
|
overridevirtual |
Reimplemented from QWindowPrivate.
Definition at line 1933 of file qquickwindow.cpp.
|
inline |
Definition at line 181 of file qquickwindow_p.h.
| QSGTexture * QQuickWindowPrivate::createTextureFromNativeTexture | ( | quint64 | nativeObjectHandle, |
| int | nativeLayoutOrState, | ||
| uint | nativeFormat, | ||
| const QSize & | size, | ||
| QQuickWindow::CreateTextureOptions | options, | ||
| TextureFromNativeTextureFlags | flags = {} ) const |
Definition at line 3324 of file qquickwindow.cpp.
| QQmlListProperty< QObject > QQuickWindowPrivate::data | ( | ) |
Definition at line 862 of file qquickwindow.cpp.
|
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.
Definition at line 1998 of file qquickwindow.cpp.
|
static |
Definition at line 2016 of file qquickwindow.cpp.
|
static |
Definition at line 2023 of file qquickwindow.cpp.
|
static |
Definition at line 2007 of file qquickwindow.cpp.
|
static |
Definition at line 2030 of file qquickwindow.cpp.
|
inline |
Definition at line 139 of file qquickwindow_p.h.
| void QQuickWindowPrivate::dirtyItem | ( | QQuickItem * | item | ) |
Definition at line 877 of file qquickwindow.cpp.
Definition at line 589 of file qquickwindow.cpp.
Definition at line 583 of file qquickwindow.cpp.
| bool QQuickWindowPrivate::emitError | ( | QQuickWindow::SceneGraphError | error, |
| const QString & | msg ) |
Definition at line 2423 of file qquickwindow.cpp.
| void QQuickWindowPrivate::ensureCustomRenderTarget | ( | ) |
Definition at line 500 of file qquickwindow.cpp.
|
inline |
Definition at line 208 of file qquickwindow_p.h.
|
inline |
Definition at line 207 of file qquickwindow_p.h.
| void QQuickWindowPrivate::forcePolish | ( | ) |
Schedules polish events on all items in the scene.
Definition at line 437 of file qquickwindow.cpp.
|
inlinestatic |
Definition at line 121 of file qquickwindow_p.h.
|
inlinestatic |
Definition at line 120 of file qquickwindow_p.h.
| void QQuickWindowPrivate::init | ( | QQuickWindow * | c, |
| QQuickRenderControl * | control = nullptr ) |
Definition at line 775 of file qquickwindow.cpp.
| void QQuickWindowPrivate::invalidateFontData | ( | QQuickItem * | item | ) |
Definition at line 489 of file qquickwindow.cpp.
| bool QQuickWindowPrivate::isRenderable | ( | ) | const |
Definition at line 2037 of file qquickwindow.cpp.
|
overridevirtual |
Synthesize and send a QContextMenuEvent if the given event is a suitable mouse event (a right-button press or release, depending on QStyleHints::contextMenuTrigger()). On most platforms, it's done on mouse press; on Windows, it's done on release, because of the potential to support right-button clicks and drags to select or lasso items, and then still getting a context menu at the end of that gesture. (That is in conflict with supporting the press-drag-release gesture to select menu items on the context menus themselves. Context menus can be implemented that way by handling the separate press, move and release events.)
Any time the event was already handled in some way, it should be accepted, but mere acceptance of the mouse event cannot be taken to indicate that it's not necessary to synthesize a QContextMenuEvent here, because the Windows use case requires doing one thing (selecting items) with the mouse events, and then doing something completely different with the QContextMenuEvent. In other words, QContextMenuEvent is very different from other kinds of optional followup events synthesized from unhandled events (like the way we synthesize a QMouseEvent only if a QTabletEvent was not handled). Furthermore, there's enough legacy widget code that doesn't call ignore() on unhandled mouse events. So it's uncertain whether this can change in Qt 7.
The QContextMenuEvent occurs at the scenePosition(). The position() was likely already "localized" during the previous delivery.
The synthesis from a mouse button event could be done in the platform plugin, but so far on Windows it's not done: WM_CONTEXTMENU is not generated by the OS, because we never call the default window procedure that would do that in response to unhandled WM_RBUTTONUP. If we eventually want to do that, we would have to avoid doing it here, on platforms where the platform plugin is responsible for it.
QGuiApplicationPrivate::processContextMenuEvent also allows keyboard-triggered context menu events that the QPA plugin might generate. On Windows, the keyboard may have a menu key. On macOS, control-return is the usual shortcut; on Gnome, it's shift-F10; and so on.
Reimplemented from QWindowPrivate.
Definition at line 1706 of file qquickwindow.cpp.
| int QQuickWindowPrivate::multiViewCount | ( | ) |
Definition at line 595 of file qquickwindow.cpp.
| QOpenGLContext * QQuickWindowPrivate::openglContext | ( | ) |
Definition at line 2460 of file qquickwindow.cpp.
| void QQuickWindowPrivate::polishItems | ( | ) |
Definition at line 329 of file qquickwindow.cpp.
| void QQuickWindowPrivate::renderSceneGraph | ( | ) |
Definition at line 619 of file qquickwindow.cpp.
|
static |
Definition at line 2043 of file qquickwindow.cpp.
Definition at line 4070 of file qquickwindow.cpp.
| void QQuickWindowPrivate::setCustomCommandBuffer | ( | QRhiCommandBuffer * | cb | ) |
Definition at line 517 of file qquickwindow.cpp.
|
overridevirtual |
Reimplemented from QWindowPrivate.
Definition at line 1939 of file qquickwindow.cpp.
|
overridevirtual |
Set new palette. Doesn't transfer ownership.
Reimplemented from QQuickPaletteProviderPrivateBase< QQuickWindow, QQuickWindowPrivate >.
Definition at line 747 of file qquickwindow.cpp.
| void QQuickWindowPrivate::syncSceneGraph | ( | ) |
Definition at line 523 of file qquickwindow.cpp.
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 765 of file qquickwindow.cpp.
| void QQuickWindowPrivate::updateChildWindowStackingOrder | ( | QQuickItem * | item = nullptr | ) |
Definition at line 1753 of file qquickwindow.cpp.
| void QQuickWindowPrivate::updateDirtyNode | ( | QQuickItem * | item | ) |
Definition at line 2172 of file qquickwindow.cpp.
| void QQuickWindowPrivate::updateDirtyNodes | ( | ) |
Definition at line 2105 of file qquickwindow.cpp.
| bool QQuickWindowPrivate::updateEffectiveOpacity | ( | QQuickItem * | ) |
| void QQuickWindowPrivate::updateEffectiveOpacityRoot | ( | QQuickItem * | , |
| qreal | ) |
| void QQuickWindowPrivate::updateWindowPalette | ( | ) |
Definition at line 760 of file qquickwindow.cpp.
Definition at line 267 of file qquickwindow_p.h.
Definition at line 268 of file qquickwindow_p.h.
Definition at line 265 of file qquickwindow_p.h.
| QScopedPointer<QQuickAnimatorController> QQuickWindowPrivate::animationController |
Definition at line 222 of file qquickwindow_p.h.
Definition at line 266 of file qquickwindow_p.h.
Definition at line 264 of file qquickwindow_p.h.
Definition at line 192 of file qquickwindow_p.h.
| QColor QQuickWindowPrivate::clearColor |
Definition at line 224 of file qquickwindow_p.h.
| std::array<QMetaObject::Connection, 7> QQuickWindowPrivate::connections |
Definition at line 198 of file qquickwindow_p.h.
| QQuickRootItem* QQuickWindowPrivate::contentItem |
Definition at line 132 of file qquickwindow_p.h.
| QSGRenderContext* QQuickWindowPrivate::context |
Definition at line 216 of file qquickwindow_p.h.
Referenced by testing.tools.safetynet_job.JobRun::_BuildRunMetadata(), testing.tools.safetynet_job.JobRun::_IncrementalRun(), testing.tools.safetynet_job.JobRun::_WriteCheckpoint(), testing.tools.safetynet_job.JobRun::_WriteRawJson(), and testing.tools.safetynet_job.JobRun::Run().
| QQuickGraphicsDevice QQuickWindowPrivate::customDeviceObjects |
Definition at line 240 of file qquickwindow_p.h.
| QQuickRenderTarget QQuickWindowPrivate::customRenderTarget |
Definition at line 232 of file qquickwindow_p.h.
|
static |
Definition at line 246 of file qquickwindow_p.h.
| QQuickDeliveryAgent* QQuickWindowPrivate::deliveryAgent = nullptr |
Definition at line 138 of file qquickwindow_p.h.
| QRhiRenderBuffer* QQuickWindowPrivate::depthStencilForSwapchain = nullptr |
Definition at line 276 of file qquickwindow_p.h.
| QQuickItem* QQuickWindowPrivate::dirtyItemList |
Definition at line 191 of file qquickwindow_p.h.
| QQuickGraphicsConfiguration QQuickWindowPrivate::graphicsConfig |
Definition at line 242 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::hasActiveSwapchain |
Definition at line 278 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::hasRenderableSwapchain |
Definition at line 279 of file qquickwindow_p.h.
|
mutable |
Definition at line 244 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::inDestructor |
Definition at line 228 of file qquickwindow_p.h.
| QVector<QQuickItem *> QQuickWindowPrivate::itemsToPolish |
Definition at line 194 of file qquickwindow_p.h.
| qreal QQuickWindowPrivate::lastReportedItemDevicePixelRatio |
Definition at line 196 of file qquickwindow_p.h.
| bool QQuickWindowPrivate::needsChildWindowStackingOrderUpdate = false |
Definition at line 210 of file qquickwindow_p.h.
| QSet<QQuickItem *> QQuickWindowPrivate::parentlessItems |
Definition at line 133 of file qquickwindow_p.h.
| bool QQuickWindowPrivate::pendingFontUpdate = false |
Definition at line 282 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::persistentGraphics |
Definition at line 226 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::persistentSceneGraph |
Definition at line 227 of file qquickwindow_p.h.
| QMetaObject::Connection QQuickWindowPrivate::physicalDpiChangedConnection |
Definition at line 197 of file qquickwindow_p.h.
| struct QQuickWindowPrivate::Redirect QQuickWindowPrivate::redirect |
| QQuickRenderControl* QQuickWindowPrivate::renderControl |
Definition at line 221 of file qquickwindow_p.h.
| QSGRenderer* QQuickWindowPrivate::renderer |
Definition at line 217 of file qquickwindow_p.h.
| QMutex QQuickWindowPrivate::renderJobMutex |
Definition at line 263 of file qquickwindow_p.h.
| QRhi* QQuickWindowPrivate::rhi = nullptr |
Definition at line 274 of file qquickwindow_p.h.
| QQuickWindow::GraphicsStateInfo QQuickWindowPrivate::rhiStateInfo |
Definition at line 273 of file qquickwindow_p.h.
| bool QQuickWindowPrivate::rmbContextMenuEventEnabled = false |
Definition at line 284 of file qquickwindow_p.h.
| QRhiRenderPassDescriptor* QQuickWindowPrivate::rpDescForSwapchain = nullptr |
Definition at line 277 of file qquickwindow_p.h.
| QRhiSwapChain* QQuickWindowPrivate::swapchain = nullptr |
Definition at line 275 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::swapchainJustBecameRenderable |
Definition at line 280 of file qquickwindow_p.h.
|
static |
Definition at line 247 of file qquickwindow_p.h.
| QQuickItem::UpdatePaintNodeData QQuickWindowPrivate::updatePaintNodeData |
Definition at line 189 of file qquickwindow_p.h.
| uint QQuickWindowPrivate::updatesEnabled |
Definition at line 281 of file qquickwindow_p.h.
| QByteArray QQuickWindowPrivate::visualizationMode |
Definition at line 218 of file qquickwindow_p.h.
| bool QQuickWindowPrivate::windowEventDispatch = false |
Definition at line 283 of file qquickwindow_p.h.
| QSGRenderLoop* QQuickWindowPrivate::windowManager |
Definition at line 220 of file qquickwindow_p.h.
| QPointer<QQuickPalette> QQuickWindowPrivate::windowPaletteRef |
Definition at line 285 of file qquickwindow_p.h.