KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QGraphicsView

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QGraphicsView

Class hierarchy: QGraphicsView » QAbstractScrollArea » QFrame » QWidget » QObject

Sub-classes: CacheModeFlag, QFlags_CacheModeFlag, DragMode, QFlags_DragMode, OptimizationFlag, QFlags_OptimizationFlag, ViewportAnchor, QFlags_ViewportAnchor, ViewportUpdateMode, QFlags_ViewportUpdateMode

Public constructors

new QGraphicsViewnew(QWidget ptr parent = 0)Constructor QGraphicsView::QGraphicsView(QWidget *parent)
new QGraphicsViewnew(QGraphicsScene ptr scene,
QWidget ptr parent = 0)
Constructor QGraphicsView::QGraphicsView(QGraphicsScene *scene, QWidget *parent)

Public methods

[const]QGraphicsView ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[const]Qt_QFlags_AlignmentFlagalignmentMethod QFlags<Qt::AlignmentFlag> QGraphicsView::alignment()
voidalignment=(Qt_QFlags_AlignmentFlag alignment)Method void QGraphicsView::setAlignment(QFlags<Qt::AlignmentFlag> alignment)
[const]QBrushbackgroundBrushMethod QBrush QGraphicsView::backgroundBrush()
voidbackgroundBrush=(const QBrush brush)Method void QGraphicsView::setBackgroundBrush(const QBrush &brush)
[const]QGraphicsView_QFlags_CacheModeFlagcacheModeMethod QFlags<QGraphicsView::CacheModeFlag> QGraphicsView::cacheMode()
voidcacheMode=(QGraphicsView_QFlags_CacheModeFlag mode)Method void QGraphicsView::setCacheMode(QFlags<QGraphicsView::CacheModeFlag> mode)
voidcenterOn(const QPointF pos)Method void QGraphicsView::centerOn(const QPointF &pos)
voidcenterOn(double x,
double y)
Method void QGraphicsView::centerOn(double x, double y)
voidcenterOn(const QGraphicsItem ptr item)Method void QGraphicsView::centerOn(const QGraphicsItem *item)
[signal]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QGraphicsView::customContextMenuRequested(const QPoint &pos)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QGraphicsView::destroyed(QObject *)
[const]QGraphicsView_DragModedragModeMethod QGraphicsView::DragMode QGraphicsView::dragMode()
voiddragMode=(const QGraphicsView_DragMode mode)Method void QGraphicsView::setDragMode(QGraphicsView::DragMode mode)
voidemit_customContextMenuRequested(const QPoint pos)Emitter for signal void QGraphicsView::customContextMenuRequested(const QPoint &pos)
voidemit_destroyed(QObject ptr arg1 = 0)Emitter for signal void QGraphicsView::destroyed(QObject *)
voidensureVisible(const QRectF rect,
int xmargin = 50,
int ymargin = 50)
Method void QGraphicsView::ensureVisible(const QRectF &rect, int xmargin, int ymargin)
voidensureVisible(double x,
double y,
double w,
double h,
int xmargin = 50,
int ymargin = 50)
Method void QGraphicsView::ensureVisible(double x, double y, double w, double h, int xmargin, int ymargin)
voidensureVisible(const QGraphicsItem ptr item,
int xmargin = 50,
int ymargin = 50)
Method void QGraphicsView::ensureVisible(const QGraphicsItem *item, int xmargin, int ymargin)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QGraphicsView::eventFilter(QObject *, QEvent *)
voidfitInView(const QRectF rect,
const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)
Method void QGraphicsView::fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode)
voidfitInView(double x,
double y,
double w,
double h,
const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)
Method void QGraphicsView::fitInView(double x, double y, double w, double h, Qt::AspectRatioMode aspectRadioMode)
voidfitInView(const QGraphicsItem ptr item,
const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)
Method void QGraphicsView::fitInView(const QGraphicsItem *item, Qt::AspectRatioMode aspectRadioMode)
[const]QBrushforegroundBrushMethod QBrush QGraphicsView::foregroundBrush()
voidforegroundBrush=(const QBrush brush)Method void QGraphicsView::setForegroundBrush(const QBrush &brush)
[const]intheightForWidth(int arg1)Virtual method int QGraphicsView::heightForWidth(int)
[const]variantinputMethodQuery(const Qt_InputMethodQuery query)Virtual method QVariant QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query)
[const]boolinteractiveMethod bool QGraphicsView::isInteractive()
voidinteractive=(bool allowed)Method void QGraphicsView::setInteractive(bool allowed)
voidinvalidateScene(const QRectF rect = QRectF(),
QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)
Method void QGraphicsView::invalidateScene(const QRectF &rect, QFlags<QGraphicsScene::SceneLayer> layers)
[const]boolisInteractive?Method bool QGraphicsView::isInteractive()
[const]boolisTransformed?Method bool QGraphicsView::isTransformed()
[const]QGraphicsItem ptritemAt(const QPoint pos)Method QGraphicsItem *QGraphicsView::itemAt(const QPoint &pos)
[const]QGraphicsItem ptritemAt(int x,
int y)
Method QGraphicsItem *QGraphicsView::itemAt(int x, int y)
[const]QGraphicsItem ptr[]itemsMethod QList<QGraphicsItem *> QGraphicsView::items()
[const]QGraphicsItem ptr[]items(const QPoint pos)Method QList<QGraphicsItem *> QGraphicsView::items(const QPoint &pos)
[const]QGraphicsItem ptr[]items(int x,
int y)
Method QList<QGraphicsItem *> QGraphicsView::items(int x, int y)
[const]QGraphicsItem ptr[]items(const QRect rect,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)
Method QList<QGraphicsItem *> QGraphicsView::items(const QRect &rect, Qt::ItemSelectionMode mode)
[const]QGraphicsItem ptr[]items(int x,
int y,
int w,
int h,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)
Method QList<QGraphicsItem *> QGraphicsView::items(int x, int y, int w, int h, Qt::ItemSelectionMode mode)
[const]QGraphicsItem ptr[]items(const QPolygon polygon,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)
Method QList<QGraphicsItem *> QGraphicsView::items(const QPolygon &polygon, Qt::ItemSelectionMode mode)
[const]QGraphicsItem ptr[]items(const QPainterPath path,
const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)
Method QList<QGraphicsItem *> QGraphicsView::items(const QPainterPath &path, Qt::ItemSelectionMode mode)
[const]QPointmapFromScene(const QPointF point)Method QPoint QGraphicsView::mapFromScene(const QPointF &point)
[const]QPolygonmapFromScene(const QRectF rect)Method QPolygon QGraphicsView::mapFromScene(const QRectF &rect)
[const]QPolygonmapFromScene(const QPolygonF polygon)Method QPolygon QGraphicsView::mapFromScene(const QPolygonF &polygon)
[const]QPainterPathmapFromScene(const QPainterPath path)Method QPainterPath QGraphicsView::mapFromScene(const QPainterPath &path)
[const]QPointmapFromScene(double x,
double y)
Method QPoint QGraphicsView::mapFromScene(double x, double y)
[const]QPolygonmapFromScene(double x,
double y,
double w,
double h)
Method QPolygon QGraphicsView::mapFromScene(double x, double y, double w, double h)
[const]QPointFmapToScene(const QPoint point)Method QPointF QGraphicsView::mapToScene(const QPoint &point)
[const]QPolygonFmapToScene(const QRect rect)Method QPolygonF QGraphicsView::mapToScene(const QRect &rect)
[const]QPolygonFmapToScene(const QPolygon polygon)Method QPolygonF QGraphicsView::mapToScene(const QPolygon &polygon)
[const]QPainterPathmapToScene(const QPainterPath path)Method QPainterPath QGraphicsView::mapToScene(const QPainterPath &path)
[const]QPointFmapToScene(int x,
int y)
Method QPointF QGraphicsView::mapToScene(int x, int y)
[const]QPolygonFmapToScene(int x,
int y,
int w,
int h)
Method QPolygonF QGraphicsView::mapToScene(int x, int y, int w, int h)
[const]QMatrixmatrixMethod QMatrix QGraphicsView::matrix()
[const]QSizeminimumSizeHintVirtual method QSize QGraphicsView::minimumSizeHint()
[const]QGraphicsView_QFlags_OptimizationFlagoptimizationFlagsMethod QFlags<QGraphicsView::OptimizationFlag> QGraphicsView::optimizationFlags()
voidoptimizationFlags=(QGraphicsView_QFlags_OptimizationFlag flags)Method void QGraphicsView::setOptimizationFlags(QFlags<QGraphicsView::OptimizationFlag> flags)
[const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QGraphicsView::paintEngine()
voidrender(QPainter ptr painter,
const QRectF target = QRectF(),
const QRect source = QRect(),
const Qt_AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio)
Method void QGraphicsView::render(QPainter *painter, const QRectF &target, const QRect &source, Qt::AspectRatioMode aspectRatioMode)
[const]QPainter_QFlags_RenderHintrenderHintsMethod QFlags<QPainter::RenderHint> QGraphicsView::renderHints()
voidrenderHints=(QPainter_QFlags_RenderHint hints)Method void QGraphicsView::setRenderHints(QFlags<QPainter::RenderHint> hints)
voidresetCachedContentMethod void QGraphicsView::resetCachedContent()
voidresetMatrixMethod void QGraphicsView::resetMatrix()
voidresetTransformMethod void QGraphicsView::resetTransform()
[const]QGraphicsView_ViewportAnchorresizeAnchorMethod QGraphicsView::ViewportAnchor QGraphicsView::resizeAnchor()
voidresizeAnchor=(const QGraphicsView_ViewportAnchor anchor)Method void QGraphicsView::setResizeAnchor(QGraphicsView::ViewportAnchor anchor)
voidrotate(double angle)Method void QGraphicsView::rotate(double angle)
[const]Qt_ItemSelectionModerubberBandSelectionModeMethod Qt::ItemSelectionMode QGraphicsView::rubberBandSelectionMode()
voidrubberBandSelectionMode=(const Qt_ItemSelectionMode mode)Method void QGraphicsView::setRubberBandSelectionMode(Qt::ItemSelectionMode mode)
voidscale(double sx,
double sy)
Method void QGraphicsView::scale(double sx, double sy)
[const]QGraphicsScene ptrsceneMethod QGraphicsScene *QGraphicsView::scene()
voidscene=(QGraphicsScene ptr scene)Method void QGraphicsView::setScene(QGraphicsScene *scene)
[const]QRectFsceneRectMethod QRectF QGraphicsView::sceneRect()
voidsceneRect=(const QRectF rect)Method void QGraphicsView::setSceneRect(const QRectF &rect)
voidsetAlignment(Qt_QFlags_AlignmentFlag alignment)Method void QGraphicsView::setAlignment(QFlags<Qt::AlignmentFlag> alignment)
voidsetBackgroundBrush(const QBrush brush)Method void QGraphicsView::setBackgroundBrush(const QBrush &brush)
voidsetCacheMode(QGraphicsView_QFlags_CacheModeFlag mode)Method void QGraphicsView::setCacheMode(QFlags<QGraphicsView::CacheModeFlag> mode)
voidsetDragMode(const QGraphicsView_DragMode mode)Method void QGraphicsView::setDragMode(QGraphicsView::DragMode mode)
voidsetForegroundBrush(const QBrush brush)Method void QGraphicsView::setForegroundBrush(const QBrush &brush)
voidsetInteractive(bool allowed)Method void QGraphicsView::setInteractive(bool allowed)
voidsetMatrix(const QMatrix matrix,
bool combine = false)
Method void QGraphicsView::setMatrix(const QMatrix &matrix, bool combine)
voidsetOptimizationFlag(const QGraphicsView_OptimizationFlag flag,
bool enabled = true)
Method void QGraphicsView::setOptimizationFlag(QGraphicsView::OptimizationFlag flag, bool enabled)
voidsetOptimizationFlags(QGraphicsView_QFlags_OptimizationFlag flags)Method void QGraphicsView::setOptimizationFlags(QFlags<QGraphicsView::OptimizationFlag> flags)
voidsetRenderHint(const QPainter_RenderHint hint,
bool enabled = true)
Method void QGraphicsView::setRenderHint(QPainter::RenderHint hint, bool enabled)
voidsetRenderHints(QPainter_QFlags_RenderHint hints)Method void QGraphicsView::setRenderHints(QFlags<QPainter::RenderHint> hints)
voidsetResizeAnchor(const QGraphicsView_ViewportAnchor anchor)Method void QGraphicsView::setResizeAnchor(QGraphicsView::ViewportAnchor anchor)
voidsetRubberBandSelectionMode(const Qt_ItemSelectionMode mode)Method void QGraphicsView::setRubberBandSelectionMode(Qt::ItemSelectionMode mode)
voidsetScene(QGraphicsScene ptr scene)Method void QGraphicsView::setScene(QGraphicsScene *scene)
voidsetSceneRect(const QRectF rect)Method void QGraphicsView::setSceneRect(const QRectF &rect)
voidsetSceneRect(double x,
double y,
double w,
double h)
Method void QGraphicsView::setSceneRect(double x, double y, double w, double h)
voidsetTransform(const QTransform matrix,
bool combine = false)
Method void QGraphicsView::setTransform(const QTransform &matrix, bool combine)
voidsetTransformationAnchor(const QGraphicsView_ViewportAnchor anchor)Method void QGraphicsView::setTransformationAnchor(QGraphicsView::ViewportAnchor anchor)
voidsetViewportUpdateMode(const QGraphicsView_ViewportUpdateMode mode)Method void QGraphicsView::setViewportUpdateMode(QGraphicsView::ViewportUpdateMode mode)
voidsetVisible(bool visible)Virtual method void QGraphicsView::setVisible(bool visible)
voidshear(double sh,
double sv)
Method void QGraphicsView::shear(double sh, double sv)
[const]QSizesizeHintVirtual method QSize QGraphicsView::sizeHint()
[const]QTransformtransformMethod QTransform QGraphicsView::transform()
[const]QGraphicsView_ViewportAnchortransformationAnchorMethod QGraphicsView::ViewportAnchor QGraphicsView::transformationAnchor()
voidtransformationAnchor=(const QGraphicsView_ViewportAnchor anchor)Method void QGraphicsView::setTransformationAnchor(QGraphicsView::ViewportAnchor anchor)
voidtranslate(double dx,
double dy)
Method void QGraphicsView::translate(double dx, double dy)
voidupdateScene(QRectF[] rects)Method void QGraphicsView::updateScene(const QList<QRectF> &rects)
voidupdateSceneRect(const QRectF rect)Method void QGraphicsView::updateSceneRect(const QRectF &rect)
[const]QTransformviewportTransformMethod QTransform QGraphicsView::viewportTransform()
[const]QGraphicsView_ViewportUpdateModeviewportUpdateModeMethod QGraphicsView::ViewportUpdateMode QGraphicsView::viewportUpdateMode()
voidviewportUpdateMode=(const QGraphicsView_ViewportUpdateMode mode)Method void QGraphicsView::setViewportUpdateMode(QGraphicsView::ViewportUpdateMode mode)

Public static methods and constants

[static,const]QGraphicsView_ViewportAnchorAnchorUnderMouseEnum constant QGraphicsView::AnchorUnderMouse
[static,const]QGraphicsView_ViewportAnchorAnchorViewCenterEnum constant QGraphicsView::AnchorViewCenter
[static,const]QGraphicsView_ViewportUpdateModeBoundingRectViewportUpdateEnum constant QGraphicsView::BoundingRectViewportUpdate
[static,const]QGraphicsView_CacheModeFlagCacheBackgroundEnum constant QGraphicsView::CacheBackground
[static,const]QGraphicsView_CacheModeFlagCacheNoneEnum constant QGraphicsView::CacheNone
[static,const]QGraphicsView_OptimizationFlagDontAdjustForAntialiasingEnum constant QGraphicsView::DontAdjustForAntialiasing
[static,const]QGraphicsView_OptimizationFlagDontClipPainterEnum constant QGraphicsView::DontClipPainter
[static,const]QGraphicsView_OptimizationFlagDontSavePainterStateEnum constant QGraphicsView::DontSavePainterState
[static,const]QGraphicsView_ViewportUpdateModeFullViewportUpdateEnum constant QGraphicsView::FullViewportUpdate
[static,const]QGraphicsView_OptimizationFlagIndirectPaintingEnum constant QGraphicsView::IndirectPainting
[static,const]QGraphicsView_ViewportUpdateModeMinimalViewportUpdateEnum constant QGraphicsView::MinimalViewportUpdate
[static,const]QGraphicsView_ViewportAnchorNoAnchorEnum constant QGraphicsView::NoAnchor
[static,const]QGraphicsView_DragModeNoDragEnum constant QGraphicsView::NoDrag
[static,const]QGraphicsView_ViewportUpdateModeNoViewportUpdateEnum constant QGraphicsView::NoViewportUpdate
[static,const]QGraphicsView_DragModeRubberBandDragEnum constant QGraphicsView::RubberBandDrag
[static,const]QGraphicsView_DragModeScrollHandDragEnum constant QGraphicsView::ScrollHandDrag
[static,const]QGraphicsView_ViewportUpdateModeSmartViewportUpdateEnum constant QGraphicsView::SmartViewportUpdate
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QGraphicsView::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QGraphicsView::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QGraphicsView::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QGraphicsView::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr arg1)Virtual method void QGraphicsView::actionEvent(QActionEvent *)
voidchangeEvent(QEvent ptr arg1)Virtual method void QGraphicsView::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr arg1)Virtual method void QGraphicsView::childEvent(QChildEvent *)
voidcloseEvent(QCloseEvent ptr arg1)Virtual method void QGraphicsView::closeEvent(QCloseEvent *)
voidcontextMenuEvent(QContextMenuEvent ptr event)Virtual method void QGraphicsView::contextMenuEvent(QContextMenuEvent *event)
voidcustomEvent(QEvent ptr arg1)Virtual method void QGraphicsView::customEvent(QEvent *)
voiddisconnectNotify(string signal)Virtual method void QGraphicsView::disconnectNotify(const char *signal)
voiddragEnterEvent(QDragEnterEvent ptr event)Virtual method void QGraphicsView::dragEnterEvent(QDragEnterEvent *event)
voiddragLeaveEvent(QDragLeaveEvent ptr event)Virtual method void QGraphicsView::dragLeaveEvent(QDragLeaveEvent *event)
voiddragMoveEvent(QDragMoveEvent ptr event)Virtual method void QGraphicsView::dragMoveEvent(QDragMoveEvent *event)
voiddrawBackground(QPainter ptr painter,
const QRectF rect)
Virtual method void QGraphicsView::drawBackground(QPainter *painter, const QRectF &rect)
voiddrawForeground(QPainter ptr painter,
const QRectF rect)
Virtual method void QGraphicsView::drawForeground(QPainter *painter, const QRectF &rect)
voiddrawFrame(QPainter ptr arg1)Method void QGraphicsView::drawFrame(QPainter *)
voiddropEvent(QDropEvent ptr event)Virtual method void QGraphicsView::dropEvent(QDropEvent *event)
voidenabledChange(bool arg1)Virtual method void QGraphicsView::enabledChange(bool)
voidenterEvent(QEvent ptr arg1)Virtual method void QGraphicsView::enterEvent(QEvent *)
boolevent(QEvent ptr event)Virtual method bool QGraphicsView::event(QEvent *event)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QGraphicsView::focusInEvent(QFocusEvent *event)
boolfocusNextChildMethod bool QGraphicsView::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QGraphicsView::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QGraphicsView::focusOutEvent(QFocusEvent *event)
boolfocusPreviousChildMethod bool QGraphicsView::focusPreviousChild()
voidfontChange(const QFont arg1)Virtual method void QGraphicsView::fontChange(const QFont &)
voidhideEvent(QHideEvent ptr arg1)Virtual method void QGraphicsView::hideEvent(QHideEvent *)
voidinputMethodEvent(QInputMethodEvent ptr event)Virtual method void QGraphicsView::inputMethodEvent(QInputMethodEvent *event)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QGraphicsView::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QGraphicsView::keyReleaseEvent(QKeyEvent *event)
voidlanguageChangeVirtual method void QGraphicsView::languageChange()
voidleaveEvent(QEvent ptr arg1)Virtual method void QGraphicsView::leaveEvent(QEvent *)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QGraphicsView::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr event)Virtual method void QGraphicsView::mouseDoubleClickEvent(QMouseEvent *event)
voidmouseMoveEvent(QMouseEvent ptr event)Virtual method void QGraphicsView::mouseMoveEvent(QMouseEvent *event)
voidmousePressEvent(QMouseEvent ptr event)Virtual method void QGraphicsView::mousePressEvent(QMouseEvent *event)
voidmouseReleaseEvent(QMouseEvent ptr event)Virtual method void QGraphicsView::mouseReleaseEvent(QMouseEvent *event)
voidmoveEvent(QMoveEvent ptr arg1)Virtual method void QGraphicsView::moveEvent(QMoveEvent *)
voidpaintEvent(QPaintEvent ptr event)Virtual method void QGraphicsView::paintEvent(QPaintEvent *event)
voidpaletteChange(const QPalette arg1)Virtual method void QGraphicsView::paletteChange(const QPalette &)
voidqt_create(unsigned long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QGraphicsView::create(WId, bool initializeWindow, bool destroyOldWindow)
voidqt_destroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QGraphicsView::destroy(bool destroyWindow, bool destroySubWindows)
[const]intreceivers(string signal)Method int QGraphicsView::receivers(const char *signal)
voidresetInputContextMethod void QGraphicsView::resetInputContext()
voidresizeEvent(QResizeEvent ptr event)Virtual method void QGraphicsView::resizeEvent(QResizeEvent *event)
voidscrollContentsBy(int dx,
int dy)
Virtual method void QGraphicsView::scrollContentsBy(int dx, int dy)
[const]QObject ptrsenderMethod QObject *QGraphicsView::sender()
voidsetViewportMargins(int left,
int top,
int right,
int bottom)
Method void QGraphicsView::setViewportMargins(int left, int top, int right, int bottom)
voidsetViewportMargins(const QMargins margins)Method void QGraphicsView::setViewportMargins(const QMargins &margins)
voidsetupViewport(QWidget ptr widget)Method void QGraphicsView::setupViewport(QWidget *widget)
voidshowEvent(QShowEvent ptr event)Virtual method void QGraphicsView::showEvent(QShowEvent *event)
voidstyleChange(QStyle arg1)Virtual method void QGraphicsView::styleChange(QStyle &)
voidtabletEvent(QTabletEvent ptr arg1)Virtual method void QGraphicsView::tabletEvent(QTabletEvent *)
voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QGraphicsView::timerEvent(QTimerEvent *)
voidupdateMicroFocusMethod void QGraphicsView::updateMicroFocus()
boolviewportEvent(QEvent ptr event)Virtual method bool QGraphicsView::viewportEvent(QEvent *event)
voidwheelEvent(QWheelEvent ptr event)Virtual method void QGraphicsView::wheelEvent(QWheelEvent *event)
voidwindowActivationChange(bool arg1)Virtual method void QGraphicsView::windowActivationChange(bool)

Detailed description

AnchorUnderMouse

Signature: [static,const] QGraphicsView_ViewportAnchor AnchorUnderMouse

Description: Enum constant QGraphicsView::AnchorUnderMouse

Python specific notes:
The object exposes a readable attribute 'AnchorUnderMouse'. This is the getter.

AnchorViewCenter

Signature: [static,const] QGraphicsView_ViewportAnchor AnchorViewCenter

Description: Enum constant QGraphicsView::AnchorViewCenter

Python specific notes:
The object exposes a readable attribute 'AnchorViewCenter'. This is the getter.

BoundingRectViewportUpdate

Signature: [static,const] QGraphicsView_ViewportUpdateMode BoundingRectViewportUpdate

Description: Enum constant QGraphicsView::BoundingRectViewportUpdate

Python specific notes:
The object exposes a readable attribute 'BoundingRectViewportUpdate'. This is the getter.

CacheBackground

Signature: [static,const] QGraphicsView_CacheModeFlag CacheBackground

Description: Enum constant QGraphicsView::CacheBackground

Python specific notes:
The object exposes a readable attribute 'CacheBackground'. This is the getter.

CacheNone

Signature: [static,const] QGraphicsView_CacheModeFlag CacheNone

Description: Enum constant QGraphicsView::CacheNone

Python specific notes:
The object exposes a readable attribute 'CacheNone'. This is the getter.

DontAdjustForAntialiasing

Signature: [static,const] QGraphicsView_OptimizationFlag DontAdjustForAntialiasing

Description: Enum constant QGraphicsView::DontAdjustForAntialiasing

Python specific notes:
The object exposes a readable attribute 'DontAdjustForAntialiasing'. This is the getter.

DontClipPainter

Signature: [static,const] QGraphicsView_OptimizationFlag DontClipPainter

Description: Enum constant QGraphicsView::DontClipPainter

Python specific notes:
The object exposes a readable attribute 'DontClipPainter'. This is the getter.

DontSavePainterState

Signature: [static,const] QGraphicsView_OptimizationFlag DontSavePainterState

Description: Enum constant QGraphicsView::DontSavePainterState

Python specific notes:
The object exposes a readable attribute 'DontSavePainterState'. This is the getter.

FullViewportUpdate

Signature: [static,const] QGraphicsView_ViewportUpdateMode FullViewportUpdate

Description: Enum constant QGraphicsView::FullViewportUpdate

Python specific notes:
The object exposes a readable attribute 'FullViewportUpdate'. This is the getter.

IndirectPainting

Signature: [static,const] QGraphicsView_OptimizationFlag IndirectPainting

Description: Enum constant QGraphicsView::IndirectPainting

Python specific notes:
The object exposes a readable attribute 'IndirectPainting'. This is the getter.

MinimalViewportUpdate

Signature: [static,const] QGraphicsView_ViewportUpdateMode MinimalViewportUpdate

Description: Enum constant QGraphicsView::MinimalViewportUpdate

Python specific notes:
The object exposes a readable attribute 'MinimalViewportUpdate'. This is the getter.

NoAnchor

Signature: [static,const] QGraphicsView_ViewportAnchor NoAnchor

Description: Enum constant QGraphicsView::NoAnchor

Python specific notes:
The object exposes a readable attribute 'NoAnchor'. This is the getter.

NoDrag

Signature: [static,const] QGraphicsView_DragMode NoDrag

Description: Enum constant QGraphicsView::NoDrag

Python specific notes:
The object exposes a readable attribute 'NoDrag'. This is the getter.

NoViewportUpdate

Signature: [static,const] QGraphicsView_ViewportUpdateMode NoViewportUpdate

Description: Enum constant QGraphicsView::NoViewportUpdate

Python specific notes:
The object exposes a readable attribute 'NoViewportUpdate'. This is the getter.

RubberBandDrag

Signature: [static,const] QGraphicsView_DragMode RubberBandDrag

Description: Enum constant QGraphicsView::RubberBandDrag

Python specific notes:
The object exposes a readable attribute 'RubberBandDrag'. This is the getter.

ScrollHandDrag

Signature: [static,const] QGraphicsView_DragMode ScrollHandDrag

Description: Enum constant QGraphicsView::ScrollHandDrag

Python specific notes:
The object exposes a readable attribute 'ScrollHandDrag'. This is the getter.

SmartViewportUpdate

Signature: [static,const] QGraphicsView_ViewportUpdateMode SmartViewportUpdate

Description: Enum constant QGraphicsView::SmartViewportUpdate

Python specific notes:
The object exposes a readable attribute 'SmartViewportUpdate'. This is the getter.

_const_cast

Signature: [const] QGraphicsView ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

actionEvent

Signature: void actionEvent (QActionEvent ptr arg1)

Description: Virtual method void QGraphicsView::actionEvent(QActionEvent *)

This method can be reimplemented in a derived class.

alignment

Signature: [const] Qt_QFlags_AlignmentFlag alignment

Description: Method QFlags<Qt::AlignmentFlag> QGraphicsView::alignment()

Python specific notes:
The object exposes a readable attribute 'alignment'. This is the getter.

alignment=

Signature: void alignment= (Qt_QFlags_AlignmentFlag alignment)

Description: Method void QGraphicsView::setAlignment(QFlags<Qt::AlignmentFlag> alignment)

Python specific notes:
The object exposes a writable attribute 'alignment'. This is the setter.

backgroundBrush

Signature: [const] QBrush backgroundBrush

Description: Method QBrush QGraphicsView::backgroundBrush()

Python specific notes:
The object exposes a readable attribute 'backgroundBrush'. This is the getter.

backgroundBrush=

Signature: void backgroundBrush= (const QBrush brush)

Description: Method void QGraphicsView::setBackgroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'backgroundBrush'. This is the setter.

cacheMode

Signature: [const] QGraphicsView_QFlags_CacheModeFlag cacheMode

Description: Method QFlags<QGraphicsView::CacheModeFlag> QGraphicsView::cacheMode()

Python specific notes:
The object exposes a readable attribute 'cacheMode'. This is the getter.

cacheMode=

Signature: void cacheMode= (QGraphicsView_QFlags_CacheModeFlag mode)

Description: Method void QGraphicsView::setCacheMode(QFlags<QGraphicsView::CacheModeFlag> mode)

Python specific notes:
The object exposes a writable attribute 'cacheMode'. This is the setter.

centerOn

(1) Signature: void centerOn (const QPointF pos)

Description: Method void QGraphicsView::centerOn(const QPointF &pos)

(2) Signature: void centerOn (double x, double y)

Description: Method void QGraphicsView::centerOn(double x, double y)

(3) Signature: void centerOn (const QGraphicsItem ptr item)

Description: Method void QGraphicsView::centerOn(const QGraphicsItem *item)

changeEvent

Signature: void changeEvent (QEvent ptr arg1)

Description: Virtual method void QGraphicsView::changeEvent(QEvent *)

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr arg1)

Description: Virtual method void QGraphicsView::childEvent(QChildEvent *)

This method can be reimplemented in a derived class.

closeEvent

Signature: void closeEvent (QCloseEvent ptr arg1)

Description: Virtual method void QGraphicsView::closeEvent(QCloseEvent *)

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr event)

Description: Virtual method void QGraphicsView::contextMenuEvent(QContextMenuEvent *event)

This method can be reimplemented in a derived class.

customContextMenuRequested

Signature: [signal] void customContextMenuRequested (const QPoint pos)

Description: Signal declaration for QGraphicsView::customContextMenuRequested(const QPoint &pos)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'customContextMenuRequested'. This is the getter.
The object exposes a writable attribute 'customContextMenuRequested'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr arg1)

Description: Virtual method void QGraphicsView::customEvent(QEvent *)

This method can be reimplemented in a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QGraphicsView::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (string signal)

Description: Virtual method void QGraphicsView::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

dragEnterEvent

Signature: void dragEnterEvent (QDragEnterEvent ptr event)

Description: Virtual method void QGraphicsView::dragEnterEvent(QDragEnterEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr event)

Description: Virtual method void QGraphicsView::dragLeaveEvent(QDragLeaveEvent *event)

This method can be reimplemented in a derived class.

dragMode

Signature: [const] QGraphicsView_DragMode dragMode

Description: Method QGraphicsView::DragMode QGraphicsView::dragMode()

Python specific notes:
The object exposes a readable attribute 'dragMode'. This is the getter.

dragMode=

Signature: void dragMode= (const QGraphicsView_DragMode mode)

Description: Method void QGraphicsView::setDragMode(QGraphicsView::DragMode mode)

Python specific notes:
The object exposes a writable attribute 'dragMode'. This is the setter.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr event)

Description: Virtual method void QGraphicsView::dragMoveEvent(QDragMoveEvent *event)

This method can be reimplemented in a derived class.

drawBackground

Signature: void drawBackground (QPainter ptr painter, const QRectF rect)

Description: Virtual method void QGraphicsView::drawBackground(QPainter *painter, const QRectF &rect)

This method can be reimplemented in a derived class.

drawForeground

Signature: void drawForeground (QPainter ptr painter, const QRectF rect)

Description: Virtual method void QGraphicsView::drawForeground(QPainter *painter, const QRectF &rect)

This method can be reimplemented in a derived class.

drawFrame

Signature: void drawFrame (QPainter ptr arg1)

Description: Method void QGraphicsView::drawFrame(QPainter *)

This method is protected and can only be called from inside a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr event)

Description: Virtual method void QGraphicsView::dropEvent(QDropEvent *event)

This method can be reimplemented in a derived class.

emit_customContextMenuRequested

Signature: void emit_customContextMenuRequested (const QPoint pos)

Description: Emitter for signal void QGraphicsView::customContextMenuRequested(const QPoint &pos)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = 0)

Description: Emitter for signal void QGraphicsView::destroyed(QObject *)

Call this method to emit this signal.

enabledChange

Signature: void enabledChange (bool arg1)

Description: Virtual method void QGraphicsView::enabledChange(bool)

This method can be reimplemented in a derived class.

ensureVisible

(1) Signature: void ensureVisible (const QRectF rect, int xmargin = 50, int ymargin = 50)

Description: Method void QGraphicsView::ensureVisible(const QRectF &rect, int xmargin, int ymargin)

(2) Signature: void ensureVisible (double x, double y, double w, double h, int xmargin = 50, int ymargin = 50)

Description: Method void QGraphicsView::ensureVisible(double x, double y, double w, double h, int xmargin, int ymargin)

(3) Signature: void ensureVisible (const QGraphicsItem ptr item, int xmargin = 50, int ymargin = 50)

Description: Method void QGraphicsView::ensureVisible(const QGraphicsItem *item, int xmargin, int ymargin)

enterEvent

Signature: void enterEvent (QEvent ptr arg1)

Description: Virtual method void QGraphicsView::enterEvent(QEvent *)

This method can be reimplemented in a derived class.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QGraphicsView::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr arg1, QEvent ptr arg2)

Description: Virtual method bool QGraphicsView::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

fitInView

(1) Signature: void fitInView (const QRectF rect, const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)

Description: Method void QGraphicsView::fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode)

(2) Signature: void fitInView (double x, double y, double w, double h, const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)

Description: Method void QGraphicsView::fitInView(double x, double y, double w, double h, Qt::AspectRatioMode aspectRadioMode)

(3) Signature: void fitInView (const QGraphicsItem ptr item, const Qt_AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio)

Description: Method void QGraphicsView::fitInView(const QGraphicsItem *item, Qt::AspectRatioMode aspectRadioMode)

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsView::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusNextChild

Signature: bool focusNextChild

Description: Method bool QGraphicsView::focusNextChild()

This method is protected and can only be called from inside a derived class.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Virtual method bool QGraphicsView::focusNextPrevChild(bool next)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QGraphicsView::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusPreviousChild

Signature: bool focusPreviousChild

Description: Method bool QGraphicsView::focusPreviousChild()

This method is protected and can only be called from inside a derived class.

fontChange

Signature: void fontChange (const QFont arg1)

Description: Virtual method void QGraphicsView::fontChange(const QFont &)

This method can be reimplemented in a derived class.

foregroundBrush

Signature: [const] QBrush foregroundBrush

Description: Method QBrush QGraphicsView::foregroundBrush()

Python specific notes:
The object exposes a readable attribute 'foregroundBrush'. This is the getter.

foregroundBrush=

Signature: void foregroundBrush= (const QBrush brush)

Description: Method void QGraphicsView::setForegroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'foregroundBrush'. This is the setter.

heightForWidth

Signature: [const] int heightForWidth (int arg1)

Description: Virtual method int QGraphicsView::heightForWidth(int)

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr arg1)

Description: Virtual method void QGraphicsView::hideEvent(QHideEvent *)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr event)

Description: Virtual method void QGraphicsView::inputMethodEvent(QInputMethodEvent *event)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery query)

Description: Virtual method QVariant QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query)

This method can be reimplemented in a derived class.

interactive

Signature: [const] bool interactive

Description: Method bool QGraphicsView::isInteractive()

Python specific notes:
The object exposes a readable attribute 'interactive'. This is the getter.

interactive=

Signature: void interactive= (bool allowed)

Description: Method void QGraphicsView::setInteractive(bool allowed)

Python specific notes:
The object exposes a writable attribute 'interactive'. This is the setter.

invalidateScene

Signature: void invalidateScene (const QRectF rect = QRectF(), QGraphicsScene_QFlags_SceneLayer layers = QGraphicsScene::AllLayers)

Description: Method void QGraphicsView::invalidateScene(const QRectF &rect, QFlags<QGraphicsScene::SceneLayer> layers)

isInteractive?

Signature: [const] bool isInteractive?

Description: Method bool QGraphicsView::isInteractive()

Python specific notes:
The object exposes a readable attribute 'interactive'. This is the getter.

isTransformed?

Signature: [const] bool isTransformed?

Description: Method bool QGraphicsView::isTransformed()

itemAt

(1) Signature: [const] QGraphicsItem ptr itemAt (const QPoint pos)

Description: Method QGraphicsItem *QGraphicsView::itemAt(const QPoint &pos)

(2) Signature: [const] QGraphicsItem ptr itemAt (int x, int y)

Description: Method QGraphicsItem *QGraphicsView::itemAt(int x, int y)

items

(1) Signature: [const] QGraphicsItem ptr[] items

Description: Method QList<QGraphicsItem *> QGraphicsView::items()

(2) Signature: [const] QGraphicsItem ptr[] items (const QPoint pos)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(const QPoint &pos)

(3) Signature: [const] QGraphicsItem ptr[] items (int x, int y)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(int x, int y)

(4) Signature: [const] QGraphicsItem ptr[] items (const QRect rect, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(const QRect &rect, Qt::ItemSelectionMode mode)

(5) Signature: [const] QGraphicsItem ptr[] items (int x, int y, int w, int h, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(int x, int y, int w, int h, Qt::ItemSelectionMode mode)

(6) Signature: [const] QGraphicsItem ptr[] items (const QPolygon polygon, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(const QPolygon &polygon, Qt::ItemSelectionMode mode)

(7) Signature: [const] QGraphicsItem ptr[] items (const QPainterPath path, const Qt_ItemSelectionMode mode = Qt::IntersectsItemShape)

Description: Method QList<QGraphicsItem *> QGraphicsView::items(const QPainterPath &path, Qt::ItemSelectionMode mode)

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsView::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QGraphicsView::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

languageChange

Signature: void languageChange

Description: Virtual method void QGraphicsView::languageChange()

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr arg1)

Description: Virtual method void QGraphicsView::leaveEvent(QEvent *)

This method can be reimplemented in a derived class.

mapFromScene

(1) Signature: [const] QPoint mapFromScene (const QPointF point)

Description: Method QPoint QGraphicsView::mapFromScene(const QPointF &point)

(2) Signature: [const] QPolygon mapFromScene (const QRectF rect)

Description: Method QPolygon QGraphicsView::mapFromScene(const QRectF &rect)

(3) Signature: [const] QPolygon mapFromScene (const QPolygonF polygon)

Description: Method QPolygon QGraphicsView::mapFromScene(const QPolygonF &polygon)

(4) Signature: [const] QPainterPath mapFromScene (const QPainterPath path)

Description: Method QPainterPath QGraphicsView::mapFromScene(const QPainterPath &path)

(5) Signature: [const] QPoint mapFromScene (double x, double y)

Description: Method QPoint QGraphicsView::mapFromScene(double x, double y)

(6) Signature: [const] QPolygon mapFromScene (double x, double y, double w, double h)

Description: Method QPolygon QGraphicsView::mapFromScene(double x, double y, double w, double h)

mapToScene

(1) Signature: [const] QPointF mapToScene (const QPoint point)

Description: Method QPointF QGraphicsView::mapToScene(const QPoint &point)

(2) Signature: [const] QPolygonF mapToScene (const QRect rect)

Description: Method QPolygonF QGraphicsView::mapToScene(const QRect &rect)

(3) Signature: [const] QPolygonF mapToScene (const QPolygon polygon)

Description: Method QPolygonF QGraphicsView::mapToScene(const QPolygon &polygon)

(4) Signature: [const] QPainterPath mapToScene (const QPainterPath path)

Description: Method QPainterPath QGraphicsView::mapToScene(const QPainterPath &path)

(5) Signature: [const] QPointF mapToScene (int x, int y)

Description: Method QPointF QGraphicsView::mapToScene(int x, int y)

(6) Signature: [const] QPolygonF mapToScene (int x, int y, int w, int h)

Description: Method QPolygonF QGraphicsView::mapToScene(int x, int y, int w, int h)

matrix

Signature: [const] QMatrix matrix

Description: Method QMatrix QGraphicsView::matrix()

Python specific notes:
The object exposes a readable attribute 'matrix'. This is the getter.

metric

Signature: [const] int metric (const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QGraphicsView::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

minimumSizeHint

Signature: [const] QSize minimumSizeHint

Description: Virtual method QSize QGraphicsView::minimumSizeHint()

This method can be reimplemented in a derived class.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QMouseEvent ptr event)

Description: Virtual method void QGraphicsView::mouseDoubleClickEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr event)

Description: Virtual method void QGraphicsView::mouseMoveEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr event)

Description: Virtual method void QGraphicsView::mousePressEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr event)

Description: Virtual method void QGraphicsView::mouseReleaseEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

moveEvent

Signature: void moveEvent (QMoveEvent ptr arg1)

Description: Virtual method void QGraphicsView::moveEvent(QMoveEvent *)

This method can be reimplemented in a derived class.

new

(1) Signature: [static] new QGraphicsView new (QWidget ptr parent = 0)

Description: Constructor QGraphicsView::QGraphicsView(QWidget *parent)

This method creates an object of class QGraphicsView.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QGraphicsView new (QGraphicsScene ptr scene, QWidget ptr parent = 0)

Description: Constructor QGraphicsView::QGraphicsView(QGraphicsScene *scene, QWidget *parent)

This method creates an object of class QGraphicsView.

Python specific notes:
This method is the default initializer of the object.

optimizationFlags

Signature: [const] QGraphicsView_QFlags_OptimizationFlag optimizationFlags

Description: Method QFlags<QGraphicsView::OptimizationFlag> QGraphicsView::optimizationFlags()

Python specific notes:
The object exposes a readable attribute 'optimizationFlags'. This is the getter.

optimizationFlags=

Signature: void optimizationFlags= (QGraphicsView_QFlags_OptimizationFlag flags)

Description: Method void QGraphicsView::setOptimizationFlags(QFlags<QGraphicsView::OptimizationFlag> flags)

Python specific notes:
The object exposes a writable attribute 'optimizationFlags'. This is the setter.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QGraphicsView::paintEngine()

This method can be reimplemented in a derived class.

paintEvent

Signature: void paintEvent (QPaintEvent ptr event)

Description: Virtual method void QGraphicsView::paintEvent(QPaintEvent *event)

This method can be reimplemented in a derived class.

paletteChange

Signature: void paletteChange (const QPalette arg1)

Description: Virtual method void QGraphicsView::paletteChange(const QPalette &)

This method can be reimplemented in a derived class.

qt_create

Signature: void qt_create (unsigned long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QGraphicsView::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

qt_destroy

Signature: void qt_destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QGraphicsView::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QGraphicsView::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

render

Signature: void render (QPainter ptr painter, const QRectF target = QRectF(), const QRect source = QRect(), const Qt_AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio)

Description: Method void QGraphicsView::render(QPainter *painter, const QRectF &target, const QRect &source, Qt::AspectRatioMode aspectRatioMode)

renderHints

Signature: [const] QPainter_QFlags_RenderHint renderHints

Description: Method QFlags<QPainter::RenderHint> QGraphicsView::renderHints()

Python specific notes:
The object exposes a readable attribute 'renderHints'. This is the getter.

renderHints=

Signature: void renderHints= (QPainter_QFlags_RenderHint hints)

Description: Method void QGraphicsView::setRenderHints(QFlags<QPainter::RenderHint> hints)

Python specific notes:
The object exposes a writable attribute 'renderHints'. This is the setter.

resetCachedContent

Signature: void resetCachedContent

Description: Method void QGraphicsView::resetCachedContent()

resetInputContext

Signature: void resetInputContext

Description: Method void QGraphicsView::resetInputContext()

This method is protected and can only be called from inside a derived class.

resetMatrix

Signature: void resetMatrix

Description: Method void QGraphicsView::resetMatrix()

resetTransform

Signature: void resetTransform

Description: Method void QGraphicsView::resetTransform()

resizeAnchor

Signature: [const] QGraphicsView_ViewportAnchor resizeAnchor

Description: Method QGraphicsView::ViewportAnchor QGraphicsView::resizeAnchor()

Python specific notes:
The object exposes a readable attribute 'resizeAnchor'. This is the getter.

resizeAnchor=

Signature: void resizeAnchor= (const QGraphicsView_ViewportAnchor anchor)

Description: Method void QGraphicsView::setResizeAnchor(QGraphicsView::ViewportAnchor anchor)

Python specific notes:
The object exposes a writable attribute 'resizeAnchor'. This is the setter.

resizeEvent

Signature: void resizeEvent (QResizeEvent ptr event)

Description: Virtual method void QGraphicsView::resizeEvent(QResizeEvent *event)

This method can be reimplemented in a derived class.

rotate

Signature: void rotate (double angle)

Description: Method void QGraphicsView::rotate(double angle)

rubberBandSelectionMode

Signature: [const] Qt_ItemSelectionMode rubberBandSelectionMode

Description: Method Qt::ItemSelectionMode QGraphicsView::rubberBandSelectionMode()

Python specific notes:
The object exposes a readable attribute 'rubberBandSelectionMode'. This is the getter.

rubberBandSelectionMode=

Signature: void rubberBandSelectionMode= (const Qt_ItemSelectionMode mode)

Description: Method void QGraphicsView::setRubberBandSelectionMode(Qt::ItemSelectionMode mode)

Python specific notes:
The object exposes a writable attribute 'rubberBandSelectionMode'. This is the setter.

scale

Signature: void scale (double sx, double sy)

Description: Method void QGraphicsView::scale(double sx, double sy)

scene

Signature: [const] QGraphicsScene ptr scene

Description: Method QGraphicsScene *QGraphicsView::scene()

Python specific notes:
The object exposes a readable attribute 'scene'. This is the getter.

scene=

Signature: void scene= (QGraphicsScene ptr scene)

Description: Method void QGraphicsView::setScene(QGraphicsScene *scene)

Python specific notes:
The object exposes a writable attribute 'scene'. This is the setter.

sceneRect

Signature: [const] QRectF sceneRect

Description: Method QRectF QGraphicsView::sceneRect()

Python specific notes:
The object exposes a readable attribute 'sceneRect'. This is the getter.

sceneRect=

Signature: void sceneRect= (const QRectF rect)

Description: Method void QGraphicsView::setSceneRect(const QRectF &rect)

Python specific notes:
The object exposes a writable attribute 'sceneRect'. This is the setter.

scrollContentsBy

Signature: void scrollContentsBy (int dx, int dy)

Description: Virtual method void QGraphicsView::scrollContentsBy(int dx, int dy)

This method can be reimplemented in a derived class.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QGraphicsView::sender()

This method is protected and can only be called from inside a derived class.

setAlignment

Signature: void setAlignment (Qt_QFlags_AlignmentFlag alignment)

Description: Method void QGraphicsView::setAlignment(QFlags<Qt::AlignmentFlag> alignment)

Python specific notes:
The object exposes a writable attribute 'alignment'. This is the setter.

setBackgroundBrush

Signature: void setBackgroundBrush (const QBrush brush)

Description: Method void QGraphicsView::setBackgroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'backgroundBrush'. This is the setter.

setCacheMode

Signature: void setCacheMode (QGraphicsView_QFlags_CacheModeFlag mode)

Description: Method void QGraphicsView::setCacheMode(QFlags<QGraphicsView::CacheModeFlag> mode)

Python specific notes:
The object exposes a writable attribute 'cacheMode'. This is the setter.

setDragMode

Signature: void setDragMode (const QGraphicsView_DragMode mode)

Description: Method void QGraphicsView::setDragMode(QGraphicsView::DragMode mode)

Python specific notes:
The object exposes a writable attribute 'dragMode'. This is the setter.

setForegroundBrush

Signature: void setForegroundBrush (const QBrush brush)

Description: Method void QGraphicsView::setForegroundBrush(const QBrush &brush)

Python specific notes:
The object exposes a writable attribute 'foregroundBrush'. This is the setter.

setInteractive

Signature: void setInteractive (bool allowed)

Description: Method void QGraphicsView::setInteractive(bool allowed)

Python specific notes:
The object exposes a writable attribute 'interactive'. This is the setter.

setMatrix

Signature: void setMatrix (const QMatrix matrix, bool combine = false)

Description: Method void QGraphicsView::setMatrix(const QMatrix &matrix, bool combine)

setOptimizationFlag

Signature: void setOptimizationFlag (const QGraphicsView_OptimizationFlag flag, bool enabled = true)

Description: Method void QGraphicsView::setOptimizationFlag(QGraphicsView::OptimizationFlag flag, bool enabled)

setOptimizationFlags

Signature: void setOptimizationFlags (QGraphicsView_QFlags_OptimizationFlag flags)

Description: Method void QGraphicsView::setOptimizationFlags(QFlags<QGraphicsView::OptimizationFlag> flags)

Python specific notes:
The object exposes a writable attribute 'optimizationFlags'. This is the setter.

setRenderHint

Signature: void setRenderHint (const QPainter_RenderHint hint, bool enabled = true)

Description: Method void QGraphicsView::setRenderHint(QPainter::RenderHint hint, bool enabled)

setRenderHints

Signature: void setRenderHints (QPainter_QFlags_RenderHint hints)

Description: Method void QGraphicsView::setRenderHints(QFlags<QPainter::RenderHint> hints)

Python specific notes:
The object exposes a writable attribute 'renderHints'. This is the setter.

setResizeAnchor

Signature: void setResizeAnchor (const QGraphicsView_ViewportAnchor anchor)

Description: Method void QGraphicsView::setResizeAnchor(QGraphicsView::ViewportAnchor anchor)

Python specific notes:
The object exposes a writable attribute 'resizeAnchor'. This is the setter.

setRubberBandSelectionMode

Signature: void setRubberBandSelectionMode (const Qt_ItemSelectionMode mode)

Description: Method void QGraphicsView::setRubberBandSelectionMode(Qt::ItemSelectionMode mode)

Python specific notes:
The object exposes a writable attribute 'rubberBandSelectionMode'. This is the setter.

setScene

Signature: void setScene (QGraphicsScene ptr scene)

Description: Method void QGraphicsView::setScene(QGraphicsScene *scene)

Python specific notes:
The object exposes a writable attribute 'scene'. This is the setter.

setSceneRect

(1) Signature: void setSceneRect (const QRectF rect)

Description: Method void QGraphicsView::setSceneRect(const QRectF &rect)

Python specific notes:
The object exposes a writable attribute 'sceneRect'. This is the setter.

(2) Signature: void setSceneRect (double x, double y, double w, double h)

Description: Method void QGraphicsView::setSceneRect(double x, double y, double w, double h)

setTransform

Signature: void setTransform (const QTransform matrix, bool combine = false)

Description: Method void QGraphicsView::setTransform(const QTransform &matrix, bool combine)

setTransformationAnchor

Signature: void setTransformationAnchor (const QGraphicsView_ViewportAnchor anchor)

Description: Method void QGraphicsView::setTransformationAnchor(QGraphicsView::ViewportAnchor anchor)

Python specific notes:
The object exposes a writable attribute 'transformationAnchor'. This is the setter.

setViewportMargins

(1) Signature: void setViewportMargins (int left, int top, int right, int bottom)

Description: Method void QGraphicsView::setViewportMargins(int left, int top, int right, int bottom)

This method is protected and can only be called from inside a derived class.

(2) Signature: void setViewportMargins (const QMargins margins)

Description: Method void QGraphicsView::setViewportMargins(const QMargins &margins)

This method is protected and can only be called from inside a derived class.

setViewportUpdateMode

Signature: void setViewportUpdateMode (const QGraphicsView_ViewportUpdateMode mode)

Description: Method void QGraphicsView::setViewportUpdateMode(QGraphicsView::ViewportUpdateMode mode)

Python specific notes:
The object exposes a writable attribute 'viewportUpdateMode'. This is the setter.

setVisible

Signature: void setVisible (bool visible)

Description: Virtual method void QGraphicsView::setVisible(bool visible)

This method can be reimplemented in a derived class.

setupViewport

Signature: void setupViewport (QWidget ptr widget)

Description: Method void QGraphicsView::setupViewport(QWidget *widget)

This method is protected and can only be called from inside a derived class.

shear

Signature: void shear (double sh, double sv)

Description: Method void QGraphicsView::shear(double sh, double sv)

showEvent

Signature: void showEvent (QShowEvent ptr event)

Description: Virtual method void QGraphicsView::showEvent(QShowEvent *event)

This method can be reimplemented in a derived class.

sizeHint

Signature: [const] QSize sizeHint

Description: Virtual method QSize QGraphicsView::sizeHint()

This method can be reimplemented in a derived class.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

styleChange

Signature: void styleChange (QStyle arg1)

Description: Virtual method void QGraphicsView::styleChange(QStyle &)

This method can be reimplemented in a derived class.

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr arg1)

Description: Virtual method void QGraphicsView::tabletEvent(QTabletEvent *)

This method can be reimplemented in a derived class.

timerEvent

Signature: void timerEvent (QTimerEvent ptr arg1)

Description: Virtual method void QGraphicsView::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

tr

(1) Signature: [static] string tr (string s, string c = 0)

Description: Static method QString QGraphicsView::tr(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string tr (string s, string c, int n)

Description: Static method QString QGraphicsView::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

(1) Signature: [static] string trUtf8 (string s, string c = 0)

Description: Static method QString QGraphicsView::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string trUtf8 (string s, string c, int n)

Description: Static method QString QGraphicsView::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

transform

Signature: [const] QTransform transform

Description: Method QTransform QGraphicsView::transform()

Python specific notes:
The object exposes a readable attribute 'transform'. This is the getter.

transformationAnchor

Signature: [const] QGraphicsView_ViewportAnchor transformationAnchor

Description: Method QGraphicsView::ViewportAnchor QGraphicsView::transformationAnchor()

Python specific notes:
The object exposes a readable attribute 'transformationAnchor'. This is the getter.

transformationAnchor=

Signature: void transformationAnchor= (const QGraphicsView_ViewportAnchor anchor)

Description: Method void QGraphicsView::setTransformationAnchor(QGraphicsView::ViewportAnchor anchor)

Python specific notes:
The object exposes a writable attribute 'transformationAnchor'. This is the setter.

translate

Signature: void translate (double dx, double dy)

Description: Method void QGraphicsView::translate(double dx, double dy)

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QGraphicsView::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

updateScene

Signature: void updateScene (QRectF[] rects)

Description: Method void QGraphicsView::updateScene(const QList<QRectF> &rects)

updateSceneRect

Signature: void updateSceneRect (const QRectF rect)

Description: Method void QGraphicsView::updateSceneRect(const QRectF &rect)

viewportEvent

Signature: bool viewportEvent (QEvent ptr event)

Description: Virtual method bool QGraphicsView::viewportEvent(QEvent *event)

This method can be reimplemented in a derived class.

viewportTransform

Signature: [const] QTransform viewportTransform

Description: Method QTransform QGraphicsView::viewportTransform()

viewportUpdateMode

Signature: [const] QGraphicsView_ViewportUpdateMode viewportUpdateMode

Description: Method QGraphicsView::ViewportUpdateMode QGraphicsView::viewportUpdateMode()

Python specific notes:
The object exposes a readable attribute 'viewportUpdateMode'. This is the getter.

viewportUpdateMode=

Signature: void viewportUpdateMode= (const QGraphicsView_ViewportUpdateMode mode)

Description: Method void QGraphicsView::setViewportUpdateMode(QGraphicsView::ViewportUpdateMode mode)

Python specific notes:
The object exposes a writable attribute 'viewportUpdateMode'. This is the setter.

wheelEvent

Signature: void wheelEvent (QWheelEvent ptr event)

Description: Virtual method void QGraphicsView::wheelEvent(QWheelEvent *event)

This method can be reimplemented in a derived class.

windowActivationChange

Signature: void windowActivationChange (bool arg1)

Description: Virtual method void QGraphicsView::windowActivationChange(bool)

This method can be reimplemented in a derived class.