4#ifndef QGRAPHICSWIDGET_H
5#define QGRAPHICSWIDGET_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qfont.h>
10# include <QtGui/qaction.h>
12#include <QtWidgets/qgraphicslayoutitem.h>
13#include <QtWidgets/qgraphicsitem.h>
14#include <QtGui/qpalette.h>
38 RESET unsetLayoutDirection)
45 Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags)
47 Q_PROPERTY(
QRectF geometry READ geometry WRITE setGeometry NOTIFY geometryChanged)
48 Q_PROPERTY(
bool autoFillBackground READ autoFillBackground WRITE setAutoFillBackground)
59 void unsetLayoutDirection();
70 bool autoFillBackground()
const;
71 void setAutoFillBackground(
bool enabled);
82 void setContentsMargins(
QMarginsF margins);
86 void setWindowFrameMargins(
QMarginsF margins);
88 void unsetWindowFrameMargins();
89 QRectF windowFrameGeometry()
const;
90 QRectF windowFrameRect()
const;
93 Qt::WindowFlags windowFlags()
const;
95 void setWindowFlags(Qt::WindowFlags wFlags);
96 bool isActiveWindow()
const;
106#ifndef QT_NO_SHORTCUT
108 void releaseShortcut(
int id);
109 void setShortcutEnabled(
int id,
bool enabled =
true);
110 void setShortcutAutoRepeat(
int id,
bool enabled =
true);
115 void addAction(
QAction *action);
119 void removeAction(
QAction *action);
129 int type()
const override;
137 void dumpFocusChain();
161 virtual bool windowFrameEvent(
QEvent *
e);
172 virtual bool focusNextPrevChild(
bool next);
177 virtual void polishEvent();
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QApplication class manages the GUI application's control flow and main settings.
The QCloseEvent class contains parameters that describe a close event.
The QFocusEvent class contains event parameters for widget focus events.
\reentrant \inmodule QtGui
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
GraphicsItemChange
This enum describes the state changes that are notified by QGraphicsItem::itemChange().
friend class QGraphicsWidget
QScopedPointer< QGraphicsItemPrivate > d_ptr
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
This event handler, for event event, can be reimplemented to receive hover move events for this item.
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
This virtual function is called by QGraphicsItem to notify custom items that some part of the item's ...
virtual QPainterPath shape() const
Returns the shape of this item as a QPainterPath in local coordinates.
virtual void focusInEvent(QFocusEvent *event)
This event handler, for event event, can be reimplemented to receive focus in events for this item.
virtual QRectF boundingRect() const =0
This pure virtual function defines the outer bounds of the item as a rectangle; all painting must be ...
virtual void focusOutEvent(QFocusEvent *event)
This event handler, for event event, can be reimplemented to receive focus out events for this item.
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
This event handler, for event event, can be reimplemented to receive hover leave events for this item...
virtual int type() const
Returns the type of an item as an int.
virtual bool sceneEvent(QEvent *event)
This virtual function receives events to this item.
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const =0
This pure virtual function returns the size hint for which of the QGraphicsLayoutItem,...
virtual void updateGeometry()
This virtual function discards any cached size hint information.
virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const
This virtual function provides the left, top, right and bottom contents margins for this QGraphicsLay...
virtual void setGeometry(const QRectF &rect)
This virtual function sets the geometry of the QGraphicsLayoutItem to rect, which is in parent coordi...
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
The QGraphicsObject class provides a base class for all graphics items that require signals,...
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framewor...
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
const QObjectList & children() const
Returns a list of child objects.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QShowEvent class provides an event that is sent when a widget is shown.
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
The QStyleOption class stores the parameters used by QStyle functions.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble GLdouble GLdouble GLdouble top
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
#define QT_REQUIRE_CONFIG(feature)
static QT_BEGIN_NAMESPACE QString windowTitle(HWND hwnd)
app setAttribute(Qt::AA_DontShowIconsInMenus)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent