Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qwidgetwindow.cpp File Reference
#include "private/qwindow_p.h"
#include "qwidgetwindow_p.h"
#include "qlayout.h"
#include "private/qwidget_p.h"
#include "private/qapplication_p.h"
#include <private/qwidgetrepaintmanager_p.h>
#include <qpa/qwindowsysteminterface_p.h>
#include <qpa/qplatformtheme.h>
#include <qpa/qplatformwindow.h>
#include <private/qgesturemanager_p.h>
#include <private/qhighdpiscaling_p.h>
#include "moc_qwidgetwindow_p.cpp"
+ Include dependency graph for qwidgetwindow.cpp:

Go to the source code of this file.

Classes

class  QWidgetWindowPrivate
 

Functions

Q_WIDGETS_EXPORT bool qt_tab_all_widgets ()
 
bool qt_try_modal (QWidget *widget, QEvent::Type type)
 
bool q_evaluateRhiConfig (const QWidget *w, QPlatformBackingStoreRhiConfig *outConfig, QSurface::SurfaceType *outType)
 
static bool shouldBePropagatedToWidget (QEvent *event)
 
static void sendChangeRecursively (QWidget *widget, QEvent::Type type)
 

Variables

Q_WIDGETS_EXPORT QWidgetqt_button_down = nullptr
 
QWidgetqt_popup_down = nullptr
 
int openPopupCount
 
bool qt_popup_down_closed = false
 
bool qt_replay_popup_mouse_event = false
 
QPointer< QWidgetqt_last_mouse_receiver = nullptr
 

Function Documentation

◆ q_evaluateRhiConfig()

bool q_evaluateRhiConfig ( const QWidget w,
QPlatformBackingStoreRhiConfig outConfig,
QSurface::SurfaceType outType 
)

Definition at line 1095 of file qwidget.cpp.

References QBackingStoreRhiSupport::checkForceRhi(), q_evaluateRhiConfigRecursive(), and qCDebug.

Referenced by QWidgetWindow::QWidgetWindow(), QWidgetPrivate::create(), and QWidget::setParent().

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

◆ qt_tab_all_widgets()

Q_WIDGETS_EXPORT bool qt_tab_all_widgets ( )

Definition at line 345 of file qapplication.cpp.

◆ qt_try_modal()

bool qt_try_modal ( QWidget widget,
QEvent::Type  type 
)

Definition at line 2226 of file qapplication.cpp.

References QEvent::KeyPress, QEvent::KeyRelease, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QApplicationPrivate::tryModalHelper(), and widget.

Referenced by QWidgetWindow::handleKeyEvent().

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

◆ sendChangeRecursively()

static void sendChangeRecursively ( QWidget widget,
QEvent::Type  type 
)
static

Definition at line 702 of file qwidgetwindow.cpp.

References d, e, QWidgetPrivate::get(), i, qobject_cast< QWidget * >(), sendChangeRecursively(), QCoreApplication::sendEvent(), and widget.

Referenced by sendChangeRecursively().

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

◆ shouldBePropagatedToWidget()

static bool shouldBePropagatedToWidget ( QEvent event)
inlinestatic

Definition at line 179 of file qwidgetwindow.cpp.

References QEvent::ChildAdded, QEvent::ChildRemoved, QEvent::Close, QEvent::DynamicPropertyChange, QEvent::Hide, QEvent::Paint, QEvent::Show, and QEvent::Timer.

Referenced by QWidgetWindow::event().

+ Here is the caller graph for this function:

Variable Documentation

◆ openPopupCount

int openPopupCount
extern

◆ qt_button_down

◆ qt_last_mouse_receiver

◆ qt_popup_down

QWidget* qt_popup_down = nullptr

◆ qt_popup_down_closed

bool qt_popup_down_closed = false

◆ qt_replay_popup_mouse_event

bool qt_replay_popup_mouse_event = false