40 #ifndef QGRAPHICSWIDGET_H
41 #define QGRAPHICSWIDGET_H
43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtGui/qfont.h>
46 # include <QtGui/qaction.h>
48 #include <QtWidgets/qgraphicslayoutitem.h>
49 #include <QtWidgets/qgraphicsitem.h>
50 #include <QtGui/qpalette.h>
74 RESET unsetLayoutDirection)
81 Q_PROPERTY(Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags)
83 Q_PROPERTY(
QRectF geometry READ geometry WRITE setGeometry NOTIFY geometryChanged)
84 Q_PROPERTY(
bool autoFillBackground READ autoFillBackground WRITE setAutoFillBackground)
95 void unsetLayoutDirection();
106 bool autoFillBackground()
const;
107 void setAutoFillBackground(
bool enabled);
118 void setContentsMargins(
QMarginsF margins);
122 void setWindowFrameMargins(
QMarginsF margins);
124 void unsetWindowFrameMargins();
125 QRectF windowFrameGeometry()
const;
126 QRectF windowFrameRect()
const;
129 Qt::WindowFlags windowFlags()
const;
131 void setWindowFlags(Qt::WindowFlags wFlags);
132 bool isActiveWindow()
const;
142 #ifndef QT_NO_SHORTCUT
144 void releaseShortcut(
int id);
145 void setShortcutEnabled(
int id,
bool enabled =
true);
146 void setShortcutAutoRepeat(
int id,
bool enabled =
true);
165 int type()
const override;
173 void dumpFocusChain();
197 virtual bool windowFrameEvent(
QEvent *
e);
208 virtual bool focusNextPrevChild(
bool next);
213 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 QEvent class is the base class of all event classes. Event objects contain event parameters.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
The QFont class specifies a query for a font used for drawing text.
The QFontMetrics class provides font metrics information.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
friend class QGraphicsWidget
QScopedPointer< QGraphicsItemPrivate > d_ptr
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
virtual QPainterPath shape() const
virtual void focusInEvent(QFocusEvent *event)
virtual QRectF boundingRect() const =0
virtual void focusOutEvent(QFocusEvent *event)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
virtual bool sceneEvent(QEvent *event)
The QGraphicsLayout class provides the base class for all layouts in Graphics View.
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
virtual void updateGeometry()
virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const
virtual void setGeometry(const QRectF &rect)
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 QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
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 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.
The QMarginsF class defines the four margins of a rectangle.
const QObjectList & children() const
The QPainter class performs low-level painting on widgets and other paint devices.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QPalette class contains color groups for each widget state.
The QPointF class defines a point in the plane using floating point precision.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QShowEvent class provides an event that is sent when a widget is shown.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
The QString class provides a Unicode character string.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
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 QVariant class acts like a union for the most common Qt data types.
const char * sizePolicy(int v)
EGLOutputLayerEXT EGLint EGLAttrib value
EGLOutputLayerEXT EGLint attribute
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
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
app setAttribute(Qt::AA_DontShowIconsInMenus)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent