43 #include <QtGui/qtguiglobal.h>
44 #include <QtCore/QObject>
45 #include <QtCore/QEvent>
46 #include <QtCore/QMargins>
47 #include <QtCore/QRect>
49 #include <QtCore/qnamespace.h>
50 #include <QtCore/qnativeinterface.h>
52 #include <QtGui/qsurface.h>
53 #include <QtGui/qsurfaceformat.h>
54 #include <QtGui/qwindowdefs.h>
56 #include <QtGui/qicon.h>
59 #include <QtGui/qcursor.h>
77 #if QT_CONFIG(wheelevent)
81 #if QT_CONFIG(tabletevent)
91 #ifndef QT_NO_DEBUG_STREAM
94 #if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
120 Q_PROPERTY(
int minimumWidth READ minimumWidth WRITE setMinimumWidth NOTIFY minimumWidthChanged)
121 Q_PROPERTY(
int minimumHeight READ minimumHeight WRITE setMinimumHeight
122 NOTIFY minimumHeightChanged)
123 Q_PROPERTY(
int maximumWidth READ maximumWidth WRITE setMaximumWidth NOTIFY maximumWidthChanged)
124 Q_PROPERTY(
int maximumHeight READ maximumHeight WRITE setMaximumHeight
125 NOTIFY maximumHeightChanged)
128 Q_PROPERTY(Visibility visibility READ visibility WRITE setVisibility NOTIFY visibilityChanged
131 WRITE reportContentOrientationChange NOTIFY contentOrientationChanged)
132 Q_PROPERTY(
qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged REVISION(2, 1))
134 Q_PROPERTY(
QWindow* transientParent READ transientParent WRITE setTransientParent NOTIFY transientParentChanged)
137 WRITE setTransientParent NOTIFY transientParentChanged REVISION(2, 13))
166 Visibility visibility()
const;
167 void setVisibility(Visibility
v);
176 bool isTopLevel()
const;
178 bool isModal()
const;
186 void setFlags(Qt::WindowFlags
flags);
187 Qt::WindowFlags
flags()
const;
194 qreal opacity()
const;
196 void setMask(
const QRegion ®ion);
204 qreal devicePixelRatio()
const;
207 Qt::WindowStates windowStates()
const;
209 void setWindowStates(Qt::WindowStates
states);
212 QWindow *transientParent()
const;
214 bool isAncestorOf(
const QWindow *
child, AncestorMode
mode = IncludeTransients)
const;
216 bool isExposed()
const;
218 inline int minimumWidth()
const {
return minimumSize().width(); }
219 inline int minimumHeight()
const {
return minimumSize().height(); }
220 inline int maximumWidth()
const {
return maximumSize().width(); }
221 inline int maximumHeight()
const {
return maximumSize().height(); }
223 QSize minimumSize()
const;
224 QSize maximumSize()
const;
225 QSize baseSize()
const;
226 QSize sizeIncrement()
const;
231 void setSizeIncrement(
const QSize &
size);
233 QRect geometry()
const;
236 QRect frameGeometry()
const;
238 QPoint framePosition()
const;
239 void setFramePosition(
const QPoint &point);
241 inline int width()
const {
return geometry().
width(); }
242 inline int height()
const {
return geometry().
height(); }
243 inline int x()
const {
return geometry().
x(); }
244 inline int y()
const {
return geometry().
y(); }
249 void setPosition(
const QPoint &pt);
250 void setPosition(
int posx,
int posy);
255 void setFilePath(
const QString &filePath);
265 bool setKeyboardGrabEnabled(
bool grab);
266 bool setMouseGrabEnabled(
bool grab);
272 virtual QObject *focusObject()
const;
285 static QWindow *fromWinId(WId
id);
287 #if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC)
297 void setVisible(
bool visible);
302 void showMinimized();
303 void showMaximized();
304 void showFullScreen();
310 bool startSystemResize(
Qt::Edges edges);
311 bool startSystemMove();
317 void setWidth(
int arg);
318 void setHeight(
int arg);
319 void setGeometry(
int posx,
int posy,
int w,
int h);
322 void setMinimumWidth(
int w);
323 void setMinimumHeight(
int h);
324 void setMaximumWidth(
int w);
325 void setMaximumHeight(
int h);
340 void widthChanged(
int arg);
341 void heightChanged(
int arg);
343 void minimumWidthChanged(
int arg);
344 void minimumHeightChanged(
int arg);
345 void maximumWidthChanged(
int arg);
346 void maximumHeightChanged(
int arg);
348 void visibleChanged(
bool arg);
373 virtual
void keyReleaseEvent(
QKeyEvent *);
378 #if QT_CONFIG(wheelevent)
379 virtual void wheelEvent(QWheelEvent *);
382 #if QT_CONFIG(tabletevent)
383 virtual void tabletEvent(QTabletEvent *);
405 if (!
o || !
o->isWindowType())
return nullptr;
410 if (!
o || !
o->isWindowType())
return nullptr;
411 return static_cast<const QWindow*
>(
o);
415 #ifndef QT_NO_DEBUG_STREAM
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
The QBackingStore class provides a drawing area for QWindow.
The QByteArray class provides an array of bytes.
The QCloseEvent class contains parameters that describe a close event.
The QCursor class provides a mouse cursor with an arbitrary shape.
The QDebug class provides an output stream for debugging information.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QExposeEvent class contains event parameters for expose events. \inmodule QtGui.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
The QGuiApplication class manages the GUI application's control flow and main settings.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QIcon class provides scalable icons in different modes and states.
The QKeyEvent class describes a key event.
The QMargins class defines the four margins of a rectangle.
The QMouseEvent class contains parameters that describe a mouse event.
The QMoveEvent class contains event parameters for move events. \inmodule QtGui.
The QObject class is the base class of all Qt objects.
void setParent(QObject *parent)
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPointF class defines a point in the plane using floating point precision.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
constexpr int height() const noexcept
constexpr QPoint topLeft() const noexcept
constexpr int x() const noexcept
constexpr QSize size() const noexcept
constexpr int width() const noexcept
constexpr int y() const noexcept
The QRegion class specifies a clip region for a painter.
The QResizeEvent class contains event parameters for resize events. \inmodule QtGui.
The QScreen class is used to query screen properties. \inmodule QtGui.
The QShowEvent class provides an event that is sent when a widget is shown.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
The QSurface class is an abstraction of renderable surfaces in Qt.
virtual SurfaceType surfaceType() const =0
The QTouchEvent class contains parameters that describe a touch event.
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
The QWindow class represents a window in the underlying windowing system.
Q_REVISION(2, 1) void requestActivate()
auto it unsigned count const
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
QTouchEventSequence touchEvent(QWindow *window, QPointingDevice *device, bool autoCommit=true)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
#define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T)
GLenum GLuint GLenum GLsizei const GLchar * message
GLsizei const GLfloat * v
[13]
GLuint64 GLenum void * handle
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLint level
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLint GLsizei GLsizei GLenum format
GLfloat GLfloat GLfloat GLfloat h
Q_GUI_EXPORT QWindowPrivate * qt_window_private(QWindow *window)
const QWindow * qobject_cast< const QWindow * >(const QObject *o)
QWindow * qobject_cast< QWindow * >(QObject *o)
Q_GUI_EXPORT QDebug operator<<(QDebug, const QWindow *)
HB_EXTERN hb_font_get_glyph_func_t void hb_destroy_func_t destroy
item setCursor(Qt::IBeamCursor)
[1]
myAction setIcon(SomeIcon)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent