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
QQuickPopupWindowPrivate Class Reference
+ Inheritance diagram for QQuickPopupWindowPrivate:
+ Collaboration diagram for QQuickPopupWindowPrivate:

Public Member Functions

void forwardEventToParentMenuOrMenuBar (QEvent *event)
 
- 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 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 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
 
const QWindowforwardToPopup (QEvent *event, const QWindow *activePopupOnPress)
 
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
 

Public Attributes

QPointer< QQuickItemm_popupItem
 
QPointer< QQuickPopupm_popup
 
- 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
 
- 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
 
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
 

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>
 
- Static Public Member Functions inherited from QQuickWindowPrivate
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)
 
- 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 24 of file qquickpopupwindow.cpp.

Member Function Documentation

◆ forwardEventToParentMenuOrMenuBar()

void QQuickPopupWindowPrivate::forwardEventToParentMenuOrMenuBar ( QEvent * event)

We want to handle menus specially, compared to other popups. For menus, we want all open parent menus and sub menus that belong together to almost act as a single popup WRT hover event delivery. This will allow the user to hover and highlight MenuItems inside all of them, not just the leaf menu. This function will therefore find the menu, or menu bar, under the event's position, and forward the event to it. But note that this forwarding will happen in parallel with normal event delivery (we don't eat the events), as we don't want to break the delivery to e.g grabbers.

Definition at line 116 of file qquickpopupwindow.cpp.

References QGuiApplicationPrivate::closeAllPopups(), QQuickWindow::contentItem, QQuickMenuPrivate::get(), QQuickPopupPrivate::get(), QQuickWindowPrivate::get(), QWidget::mapFromGlobal(), menu, menuBar, QObject::parent(), QQuickPopupWindow::popup(), qCDebug, and QWidget::window().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_popup

QPointer<QQuickPopup> QQuickPopupWindowPrivate::m_popup

Definition at line 30 of file qquickpopupwindow.cpp.

◆ m_popupItem

QPointer<QQuickItem> QQuickPopupWindowPrivate::m_popupItem

Definition at line 29 of file qquickpopupwindow.cpp.


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