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
qwidget_p.h File Reference

(58d5d4b7c2faaeaa2c2ccdabb3da6d37f9db880a)

#include <QtWidgets/private/qtwidgetsglobal_p.h>
#include "QtWidgets/qwidget.h"
#include "private/qobject_p.h"
#include "QtCore/qrect.h"
#include "QtCore/qlocale.h"
#include "QtCore/qset.h"
#include "QtGui/qregion.h"
#include "QtGui/qinputmethod.h"
#include "QtGui/qsurfaceformat.h"
#include "QtGui/qscreen.h"
#include "QtWidgets/qsizepolicy.h"
#include "QtWidgets/qstyle.h"
#include "QtWidgets/qapplication.h"
#include <private/qgesture_p.h>
#include <qpa/qplatformbackingstore.h>
#include <QtGui/private/qbackingstorerhisupport_p.h>
#include <private/qapplication_p.h>
#include <QtCore/qpointer.h>
#include <vector>
#include <memory>
+ Include dependency graph for qwidget_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QUpdateLaterEvent
 
struct  QTLWExtra
 
struct  QWExtra
 
class  QWidgetPrivate
 
struct  QWidgetPrivate::TextureData
 
struct  QWidgetPaintContext
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (lcWidgetPainting)
 
 Q_DECLARE_LOGGING_CATEGORY (lcWidgetShowHide)
 
bool qWidgetShortcutContextMatcher (QObject *object, Qt::ShortcutContext context)
 
void qSendWindowChangeToTextureChildrenRecursively (QWidget *widget, QEvent::Type eventType)
 
static bool bypassGraphicsProxyWidget (const QWidget *p)
 

Function Documentation

◆ bypassGraphicsProxyWidget()

static bool bypassGraphicsProxyWidget ( const QWidget * p)
inlinestatic

Returns true if p or any of its parents enable the Qt::BypassGraphicsProxyWidget window flag. Used in QWidget::show() and QWidget::setParent() to determine whether it's necessary to embed the widget into a QGraphicsProxyWidget or not.

Definition at line 169 of file qwidget_p.h.

References Qt::BypassGraphicsProxyWidget.

Referenced by QGraphicsProxyWidget::contextMenuEvent(), QWidgetPrivate::hide_helper(), QWidgetPrivate::parentGraphicsView(), QMenuPrivate::popup(), QWidget::setParent(), and QWidgetPrivate::show_helper().

+ Here is the caller graph for this function:

◆ Q_DECLARE_LOGGING_CATEGORY() [1/2]

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( lcWidgetPainting )

◆ Q_DECLARE_LOGGING_CATEGORY() [2/2]

Q_DECLARE_LOGGING_CATEGORY ( lcWidgetShowHide )

◆ qSendWindowChangeToTextureChildrenRecursively()

void qSendWindowChangeToTextureChildrenRecursively ( QWidget * widget,
QEvent::Type eventType )

Definition at line 10613 of file qwidget.cpp.

References d, QWidgetPrivate::Direct, QWidgetPrivate::get(), i, qobject_cast< QWidget * >(), qSendWindowChangeToTextureChildrenRecursively(), QCoreApplication::sendEvent(), widget, and window().

Referenced by qSendWindowChangeToTextureChildrenRecursively(), and QWidget::setParent().

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

◆ qWidgetShortcutContextMatcher()

bool qWidgetShortcutContextMatcher ( QObject * object,
Qt::ShortcutContext context )

Returns true if the widget w is a logical sub window of the current top-level widget.

Definition at line 43 of file qshortcut_widgets.cpp.

References QApplication::activePopupWidget(), QApplication::activeWindow(), context, correctWidgetContext(), QGuiApplication::focusWindow(), Q_ASSERT_X, qobject_cast< QWidget * >(), qobject_cast< QWindow * >(), and QShortcutPrivate::simpleContextMatcher().

Referenced by QtWidgetsShortcutPrivate::contextMatcher(), QWidget::grabShortcut(), and QGraphicsWidget::grabShortcut().

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