QtBase  v6.3.1
Signals | Public Member Functions | Protected Member Functions | List of all members
QT_BEGIN_NAMESPACE::GraphicsView Class Reference
Inheritance diagram for QT_BEGIN_NAMESPACE::GraphicsView:
Inheritance graph
[legend]
Collaboration diagram for QT_BEGIN_NAMESPACE::GraphicsView:
Collaboration graph
[legend]

Signals

void resized ()
 

Public Member Functions

 GraphicsView (QWidget *parent=nullptr)
 
- Public Member Functions inherited from QGraphicsView
 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)
 
QGraphicsScenescene () 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
 
QGraphicsItemitemAt (const QPoint &pos) const
 
QGraphicsItemitemAt (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)
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) override
 
void showEvent (QShowEvent *e) override
 
- Protected Member Functions inherited from QGraphicsView
 QGraphicsView (QGraphicsViewPrivate &, QWidget *parent=nullptr)
 
bool event (QEvent *event) override
 
bool viewportEvent (QEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
bool focusNextPrevChild (bool next) override
 
void focusOutEvent (QFocusEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 
void scrollContentsBy (int dx, int dy) override
 
void showEvent (QShowEvent *event) override
 
void inputMethodEvent (QInputMethodEvent *event) override
 
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[])
 

Additional Inherited Members

- Public Types inherited from QGraphicsView
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 }
 
- Public Slots inherited from QGraphicsView
void updateScene (const QList< QRectF > &rects)
 
void invalidateScene (const QRectF &rect=QRectF(), QGraphicsScene::SceneLayers layers=QGraphicsScene::AllLayers)
 
void updateSceneRect (const QRectF &rect)
 
- Protected Slots inherited from QGraphicsView
void setupViewport (QWidget *widget) override
 
- Properties inherited from QGraphicsView
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...
 

Detailed Description

Definition at line 144 of file qprintpreviewwidget.cpp.

Constructor & Destructor Documentation

◆ GraphicsView()

QT_BEGIN_NAMESPACE::GraphicsView::GraphicsView ( QWidget parent = nullptr)
inline

Definition at line 148 of file qprintpreviewwidget.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ resized

void QT_BEGIN_NAMESPACE::GraphicsView::resized ( )
signal

◆ resizeEvent()

void QT_BEGIN_NAMESPACE::GraphicsView::resizeEvent ( QResizeEvent e)
inlineoverrideprotected

Definition at line 159 of file qprintpreviewwidget.cpp.

Here is the call graph for this function:

◆ showEvent()

void QT_BEGIN_NAMESPACE::GraphicsView::showEvent ( QShowEvent e)
inlineoverrideprotected

Definition at line 168 of file qprintpreviewwidget.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: