- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
- Direct Known Subclasses:
QChartView
public class QGraphicsView extends QAbstractScrollArea
Widget for displaying the contents of a QGraphicsScene
Java wrapper for Qt class QGraphicsView
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QGraphicsView.CacheMode
QFlags type for enumQGraphicsView.CacheModeFlag
static class
QGraphicsView.CacheModeFlag
Java wrapper for Qt enum QGraphicsView::CacheModeFlagstatic class
QGraphicsView.DragMode
Java wrapper for Qt enum QGraphicsView::DragModestatic class
QGraphicsView.OptimizationFlag
Java wrapper for Qt enum QGraphicsView::OptimizationFlagstatic class
QGraphicsView.OptimizationFlags
QFlags type for enumQGraphicsView.OptimizationFlag
static class
QGraphicsView.ViewportAnchor
Java wrapper for Qt enum QGraphicsView::ViewportAnchorstatic class
QGraphicsView.ViewportUpdateMode
Java wrapper for Qt enum QGraphicsView::ViewportUpdateModeNested classes/interfaces inherited from class io.qt.widgets.QAbstractScrollArea
QAbstractScrollArea.SizeAdjustPolicy
Nested classes/interfaces inherited from class io.qt.widgets.QFrame
QFrame.Shadow, QFrame.Shape, QFrame.StyleMask
Nested classes/interfaces inherited from class io.qt.widgets.QWidget
QWidget.RenderFlag, QWidget.RenderFlags
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal3<QRect,QPointF,QPointF>
rubberBandChanged
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QWidget
customContextMenuRequested, windowIconChanged, windowIconTextChanged, windowTitleChanged
-
Constructor Summary
Constructors Modifier Constructor Description QGraphicsView()
Overloaded constructor forQGraphicsView(io.qt.widgets.QWidget)
withparent = null
.protected
QGraphicsView(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QGraphicsView(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGraphicsView(QGraphicsScene scene)
Overloaded constructor forQGraphicsView(io.qt.widgets.QGraphicsScene, io.qt.widgets.QWidget)
withparent = null
.QGraphicsView(QGraphicsScene scene, QWidget parent)
QGraphicsView(QWidget parent)
-
Method Summary
Methods inherited from class io.qt.widgets.QAbstractScrollArea
addScrollBarWidget, addScrollBarWidget, cornerWidget, eventFilter, horizontalScrollBar, horizontalScrollBarPolicy, maximumViewportSize, minimumSizeHint, paintEngine, scrollBarWidgets, scrollBarWidgets, setCornerWidget, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setSizeAdjustPolicy, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportMargins, setViewportMargins, sizeAdjustPolicy, verticalScrollBar, verticalScrollBarPolicy, viewport, viewportMargins, viewportSizeHint
Methods inherited from class io.qt.widgets.QFrame
changeEvent, drawFrame, frameRect, frameShadow, frameShape, frameStyle, frameWidth, initStyleOption, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth
Methods inherited from class io.qt.widgets.QWidget
acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, colorCount, contentsMargins, contentsRect, contextMenuPolicy, createWindowContainer, createWindowContainer, createWindowContainer, createWindowContainer, createWinId, cursor, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, effectiveWinId, ensurePolished, enterEvent, focusNextChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grab, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, heightMM, hide, hideEvent, initPainter, inputMethodHints, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, previousInFocusChain, raise, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resize, resize, restoreGeometry, saveGeometry, screen, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlag, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, toString, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, widthMM, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
rubberBandChanged
-
-
Constructor Details
-
QGraphicsView
Overloaded constructor for
QGraphicsView(io.qt.widgets.QGraphicsScene, io.qt.widgets.QWidget)
withparent = null
. -
QGraphicsView
-
QGraphicsView
public QGraphicsView()Overloaded constructor for
QGraphicsView(io.qt.widgets.QWidget)
withparent = null
. -
QGraphicsView
-
QGraphicsView
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QGraphicsView
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
alignment
-
backgroundBrush
-
cacheMode
-
centerOn
-
centerOn
-
centerOn
-
dragMode
-
ensureVisible
Overloaded function for
ensureVisible(io.qt.widgets.QGraphicsItem, int, int)
withymargin = 50
. -
ensureVisible
Overloaded function for
ensureVisible(io.qt.widgets.QGraphicsItem, int, int)
with:
xmargin = 50
ymargin = 50
-
ensureVisible
-
ensureVisible
Overloaded function for
ensureVisible(io.qt.core.QRectF, int, int)
withymargin = 50
. -
ensureVisible
-
ensureVisible
-
ensureVisible
@QtUninvokable public final void ensureVisible(double x, double y, double w, double h, int xmargin)Overloaded function for
ensureVisible(double, double, double, double, int, int)
withymargin = 50
. -
ensureVisible
Overloaded function for
ensureVisible(double, double, double, double, int, int)
with:
xmargin = 50
ymargin = 50
-
ensureVisible
@QtUninvokable public final void ensureVisible(double x, double y, double w, double h, int xmargin, int ymargin) -
fitInView
Overloaded function for
fitInView(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.AspectRatioMode)
withaspectRadioMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
. -
fitInView
-
fitInView
Overloaded function for
fitInView(io.qt.core.QRectF, io.qt.core.Qt.AspectRatioMode)
withaspectRadioMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
. -
fitInView
-
fitInView
Overloaded function for
fitInView(double, double, double, double, io.qt.core.Qt.AspectRatioMode)
withaspectRadioMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
. -
fitInView
@QtUninvokable public final void fitInView(double x, double y, double w, double h, Qt.AspectRatioMode aspectRadioMode) -
foregroundBrush
-
invalidateScene
Overloaded function for
invalidateScene(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)
. -
invalidateScene
Overloaded function for
invalidateScene(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)
withlayers = new io.qt.widgets.QGraphicsScene.SceneLayers(65535)
. -
invalidateScene
public final void invalidateScene()Overloaded function for
invalidateScene(io.qt.core.QRectF, io.qt.widgets.QGraphicsScene.SceneLayers)
with:
rect = new io.qt.core.QRectF()
layers = new io.qt.widgets.QGraphicsScene.SceneLayers(65535)
-
invalidateScene
-
isInteractive
-
isTransformed
-
itemAt
-
itemAt
-
items
-
items
Overloaded function for
items(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
. -
items
@QtUninvokable public final QList<QGraphicsItem> items(QPainterPath path, Qt.ItemSelectionMode mode) -
items
-
items
Overloaded function for
items(io.qt.gui.QPolygon, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
. -
items
@QtUninvokable public final QList<QGraphicsItem> items(QPolygon polygon, Qt.ItemSelectionMode mode) -
items
Overloaded function for
items(io.qt.core.QRect, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
. -
items
-
items
-
items
Overloaded function for
items(int, int, int, int, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
. -
items
@QtUninvokable public final QList<QGraphicsItem> items(int x, int y, int w, int h, Qt.ItemSelectionMode mode) -
mapFromScene
-
mapFromScene
-
mapFromScene
-
mapFromScene
-
mapFromScene
-
mapFromScene
-
mapToScene
-
mapToScene
-
mapToScene
-
mapToScene
-
mapToScene
-
mapToScene
-
optimizationFlags
-
render
Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRect, io.qt.core.Qt.AspectRatioMode)
withaspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
. -
render
Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRect, io.qt.core.Qt.AspectRatioMode)
with:
source = new io.qt.core.QRect()
aspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
-
render
Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QRectF, io.qt.core.QRect, io.qt.core.Qt.AspectRatioMode)
with:
target = new io.qt.core.QRectF()
source = new io.qt.core.QRect()
aspectRatioMode = io.qt.core.Qt.AspectRatioMode.KeepAspectRatio
-
render
@QtUninvokable public final void render(QPainter painter, QRectF target, QRect source, Qt.AspectRatioMode aspectRatioMode) -
renderHints
-
resetCachedContent
-
resetMatrix
Deprecated.UseresetTransform()
instead -
resetTransform
-
resizeAnchor
-
rotate
-
rubberBandRect
-
rubberBandSelectionMode
-
scale
-
scene
-
sceneRect
-
setAlignment
Overloaded function for
setAlignment(io.qt.core.Qt.Alignment)
. -
setAlignment
-
setBackgroundBrush
-
setCacheMode
Overloaded function for
setCacheMode(io.qt.widgets.QGraphicsView.CacheMode)
. -
setCacheMode
-
setDragMode
-
setForegroundBrush
-
setInteractive
-
setOptimizationFlag
Overloaded function for
setOptimizationFlag(io.qt.widgets.QGraphicsView.OptimizationFlag, boolean)
withenabled = true
. -
setOptimizationFlag
@QtUninvokable public final void setOptimizationFlag(QGraphicsView.OptimizationFlag flag, boolean enabled) -
setOptimizationFlags
Overloaded function for
setOptimizationFlags(io.qt.widgets.QGraphicsView.OptimizationFlags)
. -
setOptimizationFlags
-
setRenderHint
Overloaded function for
setRenderHint(io.qt.gui.QPainter.RenderHint, boolean)
withenabled = true
. -
setRenderHint
-
setRenderHints
Overloaded function for
setRenderHints(io.qt.gui.QPainter.RenderHints)
. -
setRenderHints
-
setResizeAnchor
-
setRubberBandSelectionMode
-
setScene
-
setSceneRect
-
setSceneRect
-
setTransform
Overloaded function for
setTransform(io.qt.gui.QTransform, boolean)
withcombine = false
. -
setTransform
-
setTransformationAnchor
-
setViewportUpdateMode
-
shear
-
transform
-
transformationAnchor
-
translate
-
updateScene
-
updateSceneRect
-
viewportTransform
-
viewportUpdateMode
-
contextMenuEvent
- Overrides:
contextMenuEvent
in classQAbstractScrollArea
-
dragEnterEvent
- Overrides:
dragEnterEvent
in classQAbstractScrollArea
-
dragLeaveEvent
- Overrides:
dragLeaveEvent
in classQAbstractScrollArea
-
dragMoveEvent
- Overrides:
dragMoveEvent
in classQAbstractScrollArea
-
drawBackground
-
drawForeground
-
drawItems
@QtUninvokable protected void drawItems(QPainter painter, QGraphicsItem[] items, QStyleOptionGraphicsItem[] options) -
dropEvent
- Overrides:
dropEvent
in classQAbstractScrollArea
-
event
- Overrides:
event
in classQAbstractScrollArea
-
focusInEvent
- Overrides:
focusInEvent
in classQWidget
-
focusNextPrevChild
- Overrides:
focusNextPrevChild
in classQWidget
-
focusOutEvent
- Overrides:
focusOutEvent
in classQWidget
-
inputMethodEvent
- Overrides:
inputMethodEvent
in classQWidget
-
inputMethodQuery
- Overrides:
inputMethodQuery
in classQWidget
-
keyPressEvent
- Overrides:
keyPressEvent
in classQAbstractScrollArea
-
keyReleaseEvent
- Overrides:
keyReleaseEvent
in classQWidget
-
mouseDoubleClickEvent
- Overrides:
mouseDoubleClickEvent
in classQAbstractScrollArea
-
mouseMoveEvent
- Overrides:
mouseMoveEvent
in classQAbstractScrollArea
-
mousePressEvent
- Overrides:
mousePressEvent
in classQAbstractScrollArea
-
mouseReleaseEvent
- Overrides:
mouseReleaseEvent
in classQAbstractScrollArea
-
paintEvent
- Overrides:
paintEvent
in classQAbstractScrollArea
-
resizeEvent
- Overrides:
resizeEvent
in classQAbstractScrollArea
-
scrollContentsBy
- Overrides:
scrollContentsBy
in classQAbstractScrollArea
-
setupViewport
- Overrides:
setupViewport
in classQAbstractScrollArea
-
showEvent
-
sizeHint
- Overrides:
sizeHint
in classQAbstractScrollArea
-
viewportEvent
- Overrides:
viewportEvent
in classQAbstractScrollArea
-
wheelEvent
- Overrides:
wheelEvent
in classQAbstractScrollArea
-