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>
37 Q_PROPERTY(
Qt::LayoutDirection layoutDirection READ layoutDirection WRITE setLayoutDirection
38 RESET unsetLayoutDirection)
44 Q_PROPERTY(
Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy)
45 Q_PROPERTY(
Qt::WindowFlags windowFlags READ windowFlags WRITE setWindowFlags)
48 Q_PROPERTY(
bool autoFillBackground READ autoFillBackground WRITE setAutoFillBackground)
57 Qt::LayoutDirection layoutDirection() const;
58 void setLayoutDirection(
Qt::LayoutDirection
direction);
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);
116 void addActions(
const QList<QAction*> &actions);
117 void insertActions(
QAction *before,
const QList<QAction*> &actions);
119 void removeAction(
QAction *action);
120 QList<QAction*> actions()
const;
129 int type()
const override;
137 void dumpFocusChain();
153 void updateGeometry()
override;
161 virtual bool windowFrameEvent(
QEvent *e);
172 virtual bool focusNextPrevChild(
bool next);
177 virtual void polishEvent();
204{ setGeometry(
QRectF(ax, ay, aw, ah)); }
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().
QScopedPointer< QGraphicsItemPrivate > d_ptr
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.
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
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat GLfloat GLfloat GLfloat h
static const QRectF boundingRect(const QPointF *points, int pointCount)
#define QT_REQUIRE_CONFIG(feature)
static QString windowTitle(HWND hwnd)
app setAttribute(Qt::AA_DontShowIconsInMenus)