|
| GraphicsView (QWidget *parent=nullptr) |
|
| QGraphicsView (QWidget *parent=nullptr) |
|
| QGraphicsView (QGraphicsScene *scene, QWidget *parent=nullptr) |
|
| ~QGraphicsView () |
|
QSize | sizeHint () const override |
|
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) |
|
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) |
|
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 override |
|
QBrush | backgroundBrush () const |
|
void | setBackgroundBrush (const QBrush &brush) |
|
QBrush | foregroundBrush () const |
|
void | setForegroundBrush (const QBrush &brush) |
|
|
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 { DontSavePainterState = 0x1
, DontAdjustForAntialiasing = 0x2
, IndirectPainting = 0x4
} |
|
void | updateScene (const QList< QRectF > &rects) |
|
void | invalidateScene (const QRectF &rect=QRectF(), QGraphicsScene::SceneLayers layers=QGraphicsScene::AllLayers) |
|
void | updateSceneRect (const QRectF &rect) |
|
void | setupViewport (QWidget *widget) override |
|
QBrush | backgroundBrush |
| the background brush of the scene. More...
|
|
QBrush | foregroundBrush |
| the foreground brush of the scene. More...
|
|
bool | interactive |
| whether the view allows scene interaction. More...
|
|
QRectF | sceneRect |
| the area of the scene visualized by this view. More...
|
|
Qt::Alignment | alignment |
| the alignment of the scene in the view when the whole scene is visible. More...
|
|
QPainter::RenderHints | renderHints |
| the default render hints for the view More...
|
|
DragMode | dragMode |
| the behavior for dragging the mouse over the scene while the left mouse button is pressed. More...
|
|
CacheMode | cacheMode |
| which parts of the view are cached More...
|
|
ViewportAnchor | transformationAnchor |
| how the view should position the scene during transformations. More...
|
|
ViewportAnchor | resizeAnchor |
| how the view should position the scene when the view is resized. More...
|
|
ViewportUpdateMode | viewportUpdateMode |
| how the viewport should update its contents. More...
|
|
OptimizationFlags | optimizationFlags |
| flags that can be used to tune QGraphicsView's performance. More...
|
|
Definition at line 144 of file qprintpreviewwidget.cpp.