API reference - Class QGraphicsView

Notation used in Ruby API documentation

Module: QtWidgets

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 = nullptr)Constructor QGraphicsView::QGraphicsView(QWidget *parent)
new QGraphicsViewnew(QGraphicsScene ptr scene,
QWidget ptr parent = nullptr)
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 = nullptr)Emitter for signal void QGraphicsView::destroyed(QObject *)
voidemit_objectNameChanged(string objectName)Emitter for signal void QGraphicsView::objectNameChanged(const QString &objectName)
voidemit_rubberBandChanged(QRect viewportRect,
QPointF fromScenePoint,
QPointF toScenePoint)
Emitter for signal void QGraphicsView::rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)
voidemit_windowIconChanged(const QIcon icon)Emitter for signal void QGraphicsView::windowIconChanged(const QIcon &icon)
voidemit_windowIconTextChanged(string iconText)Emitter for signal void QGraphicsView::windowIconTextChanged(const QString &iconText)
voidemit_windowTitleChanged(string title)Emitter for signal void QGraphicsView::windowTitleChanged(const QString &title)
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)
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]boolhasHeightForWidthVirtual method bool QGraphicsView::hasHeightForWidth()
[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()
[signal]voidobjectNameChanged(string objectName)Signal declaration for QGraphicsView::objectNameChanged(const QString &objectName)
[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)
[signal]voidrubberBandChanged(QRect viewportRect,
QPointF fromScenePoint,
QPointF toScenePoint)
Signal declaration for QGraphicsView::rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)
[const]QRectrubberBandRectMethod QRect QGraphicsView::rubberBandRect()
[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)
[signal]voidwindowIconChanged(const QIcon icon)Signal declaration for QGraphicsView::windowIconChanged(const QIcon &icon)
[signal]voidwindowIconTextChanged(string iconText)Signal declaration for QGraphicsView::windowIconTextChanged(const QString &iconText)
[signal]voidwindowTitleChanged(string title)Signal declaration for QGraphicsView::windowTitleChanged(const QString &title)

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 = nullptr,
int n = -1)
Static method QString QGraphicsView::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QGraphicsView::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr event)Virtual method void QGraphicsView::actionEvent(QActionEvent *event)
voidchangeEvent(QEvent ptr arg1)Virtual method void QGraphicsView::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr event)Virtual method void QGraphicsView::childEvent(QChildEvent *event)
voidcloseEvent(QCloseEvent ptr event)Virtual method void QGraphicsView::closeEvent(QCloseEvent *event)
voidcontextMenuEvent(QContextMenuEvent ptr event)Virtual method void QGraphicsView::contextMenuEvent(QContextMenuEvent *event)
voidcreate(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QGraphicsView::create(WId, bool initializeWindow, bool destroyOldWindow)
voidcustomEvent(QEvent ptr event)Virtual method void QGraphicsView::customEvent(QEvent *event)
voiddestroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QGraphicsView::destroy(bool destroyWindow, bool destroySubWindows)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QGraphicsView::disconnectNotify(const QMetaMethod &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)
voidenterEvent(QEvent ptr event)Virtual method void QGraphicsView::enterEvent(QEvent *event)
boolevent(QEvent ptr event)Virtual method bool QGraphicsView::event(QEvent *event)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QGraphicsView::eventFilter(QObject *, QEvent *)
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()
voidhideEvent(QHideEvent ptr event)Virtual method void QGraphicsView::hideEvent(QHideEvent *event)
[const]voidinitPainter(QPainter ptr painter)Virtual method void QGraphicsView::initPainter(QPainter *painter)
[const]voidinitStyleOption(QStyleOptionFrame ptr option)Method void QGraphicsView::initStyleOption(QStyleOptionFrame *option)
voidinputMethodEvent(QInputMethodEvent ptr event)Virtual method void QGraphicsView::inputMethodEvent(QInputMethodEvent *event)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QGraphicsView::isSignalConnected(const QMetaMethod &signal)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QGraphicsView::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QGraphicsView::keyReleaseEvent(QKeyEvent *event)
voidleaveEvent(QEvent ptr event)Virtual method void QGraphicsView::leaveEvent(QEvent *event)
[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 event)Virtual method void QGraphicsView::moveEvent(QMoveEvent *event)
boolnativeEvent(bytes eventType,
void * message,
long ptr result)
Virtual method bool QGraphicsView::nativeEvent(const QByteArray &eventType, void *message, long int *result)
voidpaintEvent(QPaintEvent ptr event)Virtual method void QGraphicsView::paintEvent(QPaintEvent *event)
voidqt_create(unsigned long 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)
[const]QPaintDevice ptrredirected(QPoint ptr offset)Virtual method QPaintDevice *QGraphicsView::redirected(QPoint *offset)
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()
[const]intsenderSignalIndexMethod int QGraphicsView::senderSignalIndex()
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)Virtual method void QGraphicsView::setupViewport(QWidget *widget)
[const]QPainter ptrsharedPainterVirtual method QPainter *QGraphicsView::sharedPainter()
voidshowEvent(QShowEvent ptr event)Virtual method void QGraphicsView::showEvent(QShowEvent *event)
voidtabletEvent(QTabletEvent ptr event)Virtual method void QGraphicsView::tabletEvent(QTabletEvent *event)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QGraphicsView::timerEvent(QTimerEvent *event)
voidupdateMicroFocusMethod void QGraphicsView::updateMicroFocus()
boolviewportEvent(QEvent ptr event)Virtual method bool QGraphicsView::viewportEvent(QEvent *event)
[const]QMarginsviewportMarginsMethod QMargins QGraphicsView::viewportMargins()
[const]QSizeviewportSizeHintVirtual method QSize QGraphicsView::viewportSizeHint()
voidwheelEvent(QWheelEvent ptr event)Virtual method void QGraphicsView::wheelEvent(QWheelEvent *event)

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 event)

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

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 event)

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

This method can be reimplemented in a derived class.

closeEvent

Signature: void closeEvent (QCloseEvent ptr event)

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

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.

create

Signature: void create (unsigned long 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.

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 event)

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

This method can be reimplemented in a derived class.

destroy

Signature: void 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.

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 (const QMetaMethod signal)

Description: Virtual method void QGraphicsView::disconnectNotify(const QMetaMethod &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 = nullptr)

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

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QGraphicsView::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_rubberBandChanged

Signature: void emit_rubberBandChanged (QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)

Description: Emitter for signal void QGraphicsView::rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)

Call this method to emit this signal.

emit_windowIconChanged

Signature: void emit_windowIconChanged (const QIcon icon)

Description: Emitter for signal void QGraphicsView::windowIconChanged(const QIcon &icon)

Call this method to emit this signal.

emit_windowIconTextChanged

Signature: void emit_windowIconTextChanged (string iconText)

Description: Emitter for signal void QGraphicsView::windowIconTextChanged(const QString &iconText)

Call this method to emit this signal.

emit_windowTitleChanged

Signature: void emit_windowTitleChanged (string title)

Description: Emitter for signal void QGraphicsView::windowTitleChanged(const QString &title)

Call this method to emit this signal.

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 event)

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

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.

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.

hasHeightForWidth

Signature: [const] bool hasHeightForWidth

Description: Virtual method bool QGraphicsView::hasHeightForWidth()

This method can be reimplemented in a derived class.

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 event)

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

This method can be reimplemented in a derived class.

initPainter

Signature: [const] void initPainter (QPainter ptr painter)

Description: Virtual method void QGraphicsView::initPainter(QPainter *painter)

This method can be reimplemented in a derived class.

initStyleOption

Signature: [const] void initStyleOption (QStyleOptionFrame ptr option)

Description: Method void QGraphicsView::initStyleOption(QStyleOptionFrame *option)

This method is protected and can only be called from inside 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.

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QGraphicsView::isSignalConnected(const QMetaMethod &signal)

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

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.

leaveEvent

Signature: void leaveEvent (QEvent ptr event)

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

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 event)

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

This method can be reimplemented in a derived class.

nativeEvent

Signature: bool nativeEvent (bytes eventType, void * message, long ptr result)

Description: Virtual method bool QGraphicsView::nativeEvent(const QByteArray &eventType, void *message, long int *result)

This method can be reimplemented in a derived class.

new

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

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 = nullptr)

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.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QGraphicsView::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

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

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.

qt_create

Signature: void qt_create (unsigned long 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.

redirected

Signature: [const] QPaintDevice ptr redirected (QPoint ptr offset)

Description: Virtual method QPaintDevice *QGraphicsView::redirected(QPoint *offset)

This method can be reimplemented in 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()

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)

rubberBandChanged

Signature: [signal] void rubberBandChanged (QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)

Description: Signal declaration for QGraphicsView::rubberBandChanged(QRect viewportRect, QPointF fromScenePoint, QPointF toScenePoint)

You can bind a procedure to this signal.

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

rubberBandRect

Signature: [const] QRect rubberBandRect

Description: Method QRect QGraphicsView::rubberBandRect()

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.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QGraphicsView::senderSignalIndex()

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: Virtual method void QGraphicsView::setupViewport(QWidget *widget)

This method can be reimplemented in a derived class.

sharedPainter

Signature: [const] QPainter ptr sharedPainter

Description: Virtual method QPainter *QGraphicsView::sharedPainter()

This method can be reimplemented in 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.

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr event)

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

This method can be reimplemented in a derived class.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

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

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

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

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

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.

viewportMargins

Signature: [const] QMargins viewportMargins

Description: Method QMargins QGraphicsView::viewportMargins()

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

viewportSizeHint

Signature: [const] QSize viewportSizeHint

Description: Virtual method QSize QGraphicsView::viewportSizeHint()

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.

windowIconChanged

Signature: [signal] void windowIconChanged (const QIcon icon)

Description: Signal declaration for QGraphicsView::windowIconChanged(const QIcon &icon)

You can bind a procedure to this signal.

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

windowIconTextChanged

Signature: [signal] void windowIconTextChanged (string iconText)

Description: Signal declaration for QGraphicsView::windowIconTextChanged(const QString &iconText)

You can bind a procedure to this signal.

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

windowTitleChanged

Signature: [signal] void windowTitleChanged (string title)

Description: Signal declaration for QGraphicsView::windowTitleChanged(const QString &title)

You can bind a procedure to this signal.

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