Definition at line 64 of file qgraphicsview.h.
Public Types
|
| enum |
ViewportAnchor
{
NoAnchor,
AnchorViewCenter,
AnchorUnderMouse } |
| enum |
CacheModeFlag
{
CacheNone = 0x0,
CacheBackground = 0x1 } |
| enum |
DragMode
{
NoDrag,
ScrollHandDrag,
RubberBandDrag } |
| enum |
ViewportUpdateMode
{
FullViewportUpdate,
MinimalViewportUpdate,
SmartViewportUpdate,
NoViewportUpdate,
BoundingRectViewportUpdate
} |
| enum |
OptimizationFlag
{
DontClipPainter = 0x1,
DontSavePainterState = 0x2,
DontAdjustForAntialiasing = 0x4,
IndirectPainting = 0x8 } |
Public Slots
|
| void |
updateScene
(const QList<
QRectF >
&rects) |
| void |
invalidateScene
(const QRectF
&rect=QRectF(),
QGraphicsScene::SceneLayers layers=QGraphicsScene::AllLayers) |
| void |
updateSceneRect
(const QRectF
&rect) |
Public Member Functions
|
| |
QGraphicsView
(QWidget
*parent=0) |
| |
QGraphicsView
(QGraphicsScene *scene, QWidget *parent=0) |
| |
~QGraphicsView
() |
| QSize |
sizeHint
() const |
|
QPainter::RenderHints |
renderHints
() const |
| void |
setRenderHint
(QPainter::RenderHint
hint, bool enabled=true) |
| void |
setRenderHints
(QPainter::RenderHints hints) |
|
Qt::Alignment |
alignment
() const |
| void |
setAlignment
(Qt::Alignment alignment) |
| ViewportAnchor |
transformationAnchor
() const |
| void |
setTransformationAnchor
(ViewportAnchor
anchor) |
| ViewportAnchor |
resizeAnchor
() const |
| void |
setResizeAnchor
(ViewportAnchor
anchor) |
| ViewportUpdateMode |
viewportUpdateMode
() const |
| void |
setViewportUpdateMode
(ViewportUpdateMode
mode) |
|
OptimizationFlags |
optimizationFlags
() const |
| void |
setOptimizationFlag
(OptimizationFlag
flag, bool enabled=true) |
| void |
setOptimizationFlags
(OptimizationFlags flags) |
| DragMode |
dragMode
() const |
| void |
setDragMode
(DragMode
mode) |
| Qt::ItemSelectionMode |
rubberBandSelectionMode
() const |
| void |
setRubberBandSelectionMode
(Qt::ItemSelectionMode
mode) |
|
CacheMode |
cacheMode
() const |
| void |
setCacheMode
(CacheMode mode) |
| void |
resetCachedContent
() |
| bool |
isInteractive
() const |
| void |
setInteractive
(bool allowed) |
| QGraphicsScene * |
scene
() const |
| void |
setScene
(QGraphicsScene *scene) |
| QRectF |
sceneRect
() const |
| void |
setSceneRect
(const QRectF
&rect) |
| void |
setSceneRect
(qreal x, qreal y, qreal w, qreal h) |
| QMatrix |
matrix
() const |
| void |
setMatrix
(const QMatrix
&matrix, bool combine=false) |
| void |
resetMatrix
() |
| QTransform |
transform
() const |
| QTransform |
viewportTransform
() const |
| bool |
isTransformed
() const |
| void |
setTransform
(const QTransform
&matrix, bool combine=false) |
| void |
resetTransform
() |
| void |
rotate
(qreal angle) |
| void |
scale
(qreal sx, qreal sy) |
| void |
shear
(qreal sh, qreal sv) |
| void |
translate
(qreal dx, qreal dy) |
| void |
centerOn
(const QPointF
&pos) |
| void |
centerOn
(qreal x, qreal y) |
| void |
centerOn
(const QGraphicsItem *item) |
| void |
ensureVisible
(const QRectF
&rect, int xmargin=50, int ymargin=50) |
| void |
ensureVisible
(qreal x, qreal y, qreal w, qreal h, int xmargin=50, int
ymargin=50) |
| void |
ensureVisible
(const QGraphicsItem *item, int
xmargin=50, int ymargin=50) |
| void |
fitInView
(const QRectF
&rect, Qt::AspectRatioMode
aspectRadioMode=Qt::IgnoreAspectRatio) |
| void |
fitInView
(qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode
aspectRadioMode=Qt::IgnoreAspectRatio) |
| void |
fitInView
(const QGraphicsItem *item, Qt::AspectRatioMode
aspectRadioMode=Qt::IgnoreAspectRatio) |
| void |
render
(QPainter *painter,
const QRectF
&target=QRectF(),
const QRect
&source=QRect(),
Qt::AspectRatioMode
aspectRatioMode=Qt::KeepAspectRatio) |
| QList< QGraphicsItem * > |
items
() const |
| QList< QGraphicsItem * > |
items
(const QPoint &pos)
const |
| QList< QGraphicsItem * > |
items
(int x, int y) const |
| QList< QGraphicsItem * > |
items
(const QRect &rect,
Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(int x, int y, int w, int h, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(const QPolygon
&polygon, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QList< QGraphicsItem * > |
items
(const QPainterPath &path, Qt::ItemSelectionMode
mode=Qt::IntersectsItemShape) const |
| QGraphicsItem * |
itemAt
(const QPoint &pos)
const |
| QGraphicsItem * |
itemAt
(int x, int y) const |
| QPointF |
mapToScene
(const QPoint
&point) const |
| QPolygonF |
mapToScene
(const QRect &rect)
const |
| QPolygonF |
mapToScene
(const QPolygon
&polygon) const |
| QPainterPath |
mapToScene
(const QPainterPath &path) const |
| QPoint |
mapFromScene
(const QPointF
&point) const |
| QPolygon |
mapFromScene
(const QRectF
&rect) const |
| QPolygon |
mapFromScene
(const QPolygonF
&polygon) const |
| QPainterPath |
mapFromScene
(const QPainterPath &path) const |
| QPointF |
mapToScene
(int x, int y) const |
| QPolygonF |
mapToScene
(int x, int y, int w, int h) const |
| QPoint |
mapFromScene
(qreal x, qreal y) const |
| QPolygon |
mapFromScene
(qreal x, qreal y, qreal w, qreal h) const |
| QVariant |
inputMethodQuery
(Qt::InputMethodQuery
query) const |
| QBrush |
backgroundBrush
() const |
| void |
setBackgroundBrush
(const QBrush
&brush) |
| QBrush |
foregroundBrush
() const |
| void |
setForegroundBrush
(const QBrush
&brush) |
Protected Slots
|
| void |
setupViewport
(QWidget *widget) |
Protected Member Functions
|
| |
QGraphicsView
(QGraphicsViewPrivate &, QWidget *parent=0) |
| bool |
event
(QEvent *event) |
| bool |
viewportEvent
(QEvent *event) |
| void |
contextMenuEvent
(QContextMenuEvent
*event) |
| void |
dragEnterEvent
(QDragEnterEvent *event) |
| void |
dragLeaveEvent
(QDragLeaveEvent *event) |
| void |
dragMoveEvent
(QDragMoveEvent *event) |
| void |
dropEvent
(QDropEvent
*event) |
| void |
focusInEvent
(QFocusEvent
*event) |
| bool |
focusNextPrevChild
(bool next) |
| void |
focusOutEvent
(QFocusEvent
*event) |
| void |
keyPressEvent
(QKeyEvent
*event) |
| void |
keyReleaseEvent
(QKeyEvent
*event) |
| void |
mouseDoubleClickEvent
(QMouseEvent
*event) |
| void |
mousePressEvent
(QMouseEvent
*event) |
| void |
mouseMoveEvent
(QMouseEvent
*event) |
| void |
mouseReleaseEvent
(QMouseEvent
*event) |
| void |
wheelEvent
(QWheelEvent
*event) |
| void |
paintEvent
(QPaintEvent
*event) |
| void |
resizeEvent
(QResizeEvent
*event) |
| void |
scrollContentsBy
(int dx, int dy) |
| void |
showEvent
(QShowEvent
*event) |
| void |
inputMethodEvent
(QInputMethodEvent
*event) |
| virtual
void |
drawBackground
(QPainter *painter,
const QRectF
&rect) |
| virtual
void |
drawForeground
(QPainter *painter,
const QRectF
&rect) |
| virtual
void |
drawItems
(QPainter *painter,
int numItems, QGraphicsItem *items[], const
QStyleOptionGraphicsItem
options[]) |
Properties
|
| QBrush |
backgroundBrush |
| QBrush |
foregroundBrush |
| bool |
interactive |
| QRectF |
sceneRect |
|
Qt::Alignment |
alignment |
|
QPainter::RenderHints |
renderHints |
| DragMode |
dragMode |
|
CacheMode |
cacheMode |
| ViewportAnchor |
transformationAnchor |
| ViewportAnchor |
resizeAnchor |
| ViewportUpdateMode |
viewportUpdateMode |
| Qt::ItemSelectionMode |
rubberBandSelectionMode |
|
OptimizationFlags |
optimizationFlags |
Friends
|
| class |
QGraphicsScene |
| class |
QGraphicsScenePrivate |
| class |
QGraphicsItemPrivate |