- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
- Direct Known Subclasses:
QTableWidget
public class QTableView extends QAbstractItemView
Default model/view implementation of a table view
Java wrapper for Qt class QTableView
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.widgets.QAbstractItemView
QAbstractItemView.CursorAction, QAbstractItemView.DragDropMode, QAbstractItemView.DropIndicatorPosition, QAbstractItemView.EditTrigger, QAbstractItemView.EditTriggers, QAbstractItemView.ScrollHint, QAbstractItemView.ScrollMode, QAbstractItemView.SelectionBehavior, QAbstractItemView.SelectionMode, QAbstractItemView.State
Nested 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.QBooleanProperty, QObject.QByteProperty, QObject.QCharProperty, QObject.QComputedBooleanProperty, QObject.QComputedByteProperty, QObject.QComputedCharProperty, QObject.QComputedDoubleProperty, QObject.QComputedFloatProperty, QObject.QComputedIntProperty, QObject.QComputedLongProperty, QObject.QComputedProperty<T>, QObject.QComputedShortProperty, QObject.QDeclarativeConstructor, QObject.QDoubleProperty, QObject.QFloatProperty, QObject.QIntProperty, QObject.QLongProperty, QObject.QProperty<T>, QObject.QShortProperty, 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 static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QAbstractItemView
activated, clicked, doubleClicked, entered, iconSizeChanged, pressed, viewportEntered
Fields inherited from class io.qt.widgets.QWidget
customContextMenuRequested, windowIconChanged, windowIconTextChanged, windowTitleChanged
-
Constructor Summary
Constructors Modifier Constructor Description QTableView()
Overloaded constructor forQTableView(io.qt.widgets.QWidget)
withparent = null
.protected
QTableView(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QTableView(QtObject.QPrivateConstructor p)
Constructor for internal use only.QTableView(QWidget parent)
-
Method Summary
Modifier and Type Method Description void
clearSpans()
int
columnAt(int x)
protected void
columnCountChanged(int oldCount, int newCount)
protected void
columnMoved(int column, int oldIndex, int newIndex)
protected void
columnResized(int column, int oldWidth, int newWidth)
int
columnSpan(int row, int column)
int
columnViewportPosition(int column)
int
columnWidth(int column)
protected void
currentChanged(QModelIndex current, QModelIndex previous)
void
doItemsLayout()
Qt.PenStyle
gridStyle()
void
hideColumn(int column)
void
hideRow(int row)
QHeaderView
horizontalHeader()
protected int
horizontalOffset()
protected void
horizontalScrollbarAction(int action)
QModelIndex
indexAt(QPoint p)
protected void
initViewItemOption(QStyleOptionViewItem option)
boolean
isColumnHidden(int column)
boolean
isCornerButtonEnabled()
protected boolean
isIndexHidden(QModelIndex index)
boolean
isRowHidden(int row)
boolean
isSortingEnabled()
protected QModelIndex
moveCursor(QAbstractItemView.CursorAction cursorAction, Qt.KeyboardModifiers modifiers)
protected void
paintEvent(QPaintEvent e)
void
resizeColumnsToContents()
void
resizeColumnToContents(int column)
void
resizeRowsToContents()
void
resizeRowToContents(int row)
int
rowAt(int y)
protected void
rowCountChanged(int oldCount, int newCount)
int
rowHeight(int row)
protected void
rowMoved(int row, int oldIndex, int newIndex)
protected void
rowResized(int row, int oldHeight, int newHeight)
int
rowSpan(int row, int column)
int
rowViewportPosition(int row)
protected void
scrollContentsBy(int dx, int dy)
void
scrollTo(QModelIndex index, QAbstractItemView.ScrollHint hint)
void
selectColumn(int column)
protected List<QModelIndex>
selectedIndexes()
protected void
selectionChanged(QItemSelection selected, QItemSelection deselected)
void
selectRow(int row)
void
setColumnHidden(int column, boolean hide)
void
setColumnWidth(int column, int width)
void
setCornerButtonEnabled(boolean enable)
void
setGridStyle(Qt.PenStyle style)
void
setHorizontalHeader(QHeaderView header)
void
setModel(QAbstractItemModel model)
void
setRootIndex(QModelIndex index)
void
setRowHeight(int row, int height)
void
setRowHidden(int row, boolean hide)
protected void
setSelection(QRect rect, QItemSelectionModel.SelectionFlags command)
void
setSelectionModel(QItemSelectionModel selectionModel)
void
setShowGrid(boolean show)
void
setSortingEnabled(boolean enable)
void
setSpan(int row, int column, int rowSpan, int columnSpan)
void
setVerticalHeader(QHeaderView header)
void
setWordWrap(boolean on)
void
showColumn(int column)
boolean
showGrid()
void
showRow(int row)
int
sizeHintForColumn(int column)
int
sizeHintForRow(int row)
void
sortByColumn(int column, Qt.SortOrder order)
protected void
timerEvent(QTimerEvent event)
protected void
updateGeometries()
QHeaderView
verticalHeader()
protected int
verticalOffset()
protected void
verticalScrollbarAction(int action)
protected QSize
viewportSizeHint()
QRect
visualRect(QModelIndex index)
protected QRegion
visualRegionForSelection(QItemSelection selection)
boolean
wordWrap()
Methods inherited from class io.qt.widgets.QAbstractItemView
alternatingRowColors, autoScrollMargin, clearSelection, closeEditor, closePersistentEditor, commitData, currentIndex, dataChanged, dataChanged, defaultDropAction, dirtyRegionOffset, doAutoScroll, dragDropMode, dragDropOverwriteMode, dragEnabled, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, dropIndicatorPosition, edit, edit, editorDestroyed, editTriggers, event, eventFilter, executeDelayedItemsLayout, focusInEvent, focusNextPrevChild, focusOutEvent, hasAutoScroll, horizontalScrollbarValueChanged, horizontalScrollMode, iconSize, indexWidget, inputMethodEvent, inputMethodQuery, isPersistentEditorOpen, itemDelegate, itemDelegate, itemDelegateForColumn, itemDelegateForIndex, itemDelegateForRow, keyboardSearch, keyPressEvent, model, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, openPersistentEditor, reset, resetHorizontalScrollMode, resetVerticalScrollMode, resizeEvent, rootIndex, rowsAboutToBeRemoved, rowsInserted, scheduleDelayedItemsLayout, scrollDirtyRegion, scrollTo, scrollToBottom, scrollToTop, selectAll, selectionBehavior, selectionCommand, selectionCommand, selectionMode, selectionModel, setAlternatingRowColors, setAutoScroll, setAutoScrollMargin, setCurrentIndex, setDefaultDropAction, setDirtyRegion, setDragDropMode, setDragDropOverwriteMode, setDragEnabled, setDropIndicatorShown, setEditTriggers, setEditTriggers, setHorizontalScrollMode, setIconSize, setIndexWidget, setItemDelegate, setItemDelegateForColumn, setItemDelegateForRow, setSelectionBehavior, setSelectionMode, setState, setTabKeyNavigation, setTextElideMode, setVerticalScrollMode, showDropIndicator, sizeHintForIndex, startAutoScroll, startDrag, startDrag, state, stopAutoScroll, tabKeyNavigation, textElideMode, update, updateEditorData, updateEditorGeometries, verticalScrollbarValueChanged, verticalScrollMode, viewportEvent
Methods inherited from class io.qt.widgets.QAbstractScrollArea
addScrollBarWidget, addScrollBarWidget, contextMenuEvent, cornerWidget, horizontalScrollBar, horizontalScrollBarPolicy, maximumViewportSize, minimumSizeHint, paintEngine, scrollBarWidgets, scrollBarWidgets, setCornerWidget, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setSizeAdjustPolicy, setupViewport, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportMargins, setViewportMargins, sizeAdjustPolicy, sizeHint, verticalScrollBar, verticalScrollBarPolicy, viewport, viewportMargins, wheelEvent
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, 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, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFrom, mapFromGlobal, mapFromGlobal, mapFromParent, mapFromParent, mapTo, mapTo, mapToGlobal, mapToGlobal, mapToParent, 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, setScreen, 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, showEvent, 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, 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, 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, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QTableView
public QTableView()Overloaded constructor for
QTableView(io.qt.widgets.QWidget)
withparent = null
. -
QTableView
-
QTableView
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QTableView
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
clearSpans
-
columnAt
-
columnCountChanged
protected final void columnCountChanged(int oldCount, int newCount) -
columnMoved
protected final void columnMoved(int column, int oldIndex, int newIndex) -
columnResized
protected final void columnResized(int column, int oldWidth, int newWidth) -
columnSpan
-
columnViewportPosition
-
columnWidth
-
gridStyle
-
hideColumn
public final void hideColumn(int column) -
hideRow
public final void hideRow(int row) -
horizontalHeader
-
isColumnHidden
-
isCornerButtonEnabled
-
isRowHidden
-
isSortingEnabled
-
resizeColumnToContents
public final void resizeColumnToContents(int column) -
resizeColumnsToContents
public final void resizeColumnsToContents() -
resizeRowToContents
public final void resizeRowToContents(int row) -
resizeRowsToContents
public final void resizeRowsToContents() -
rowAt
-
rowCountChanged
protected final void rowCountChanged(int oldCount, int newCount) -
rowHeight
-
rowMoved
protected final void rowMoved(int row, int oldIndex, int newIndex) -
rowResized
protected final void rowResized(int row, int oldHeight, int newHeight) -
rowSpan
-
rowViewportPosition
-
selectColumn
public final void selectColumn(int column) -
selectRow
public final void selectRow(int row) -
setColumnHidden
-
setColumnWidth
-
setCornerButtonEnabled
-
setGridStyle
-
setHorizontalHeader
-
setRowHeight
-
setRowHidden
-
setShowGrid
public final void setShowGrid(boolean show) -
setSortingEnabled
-
setSpan
-
setVerticalHeader
-
setWordWrap
-
showColumn
public final void showColumn(int column) -
showGrid
-
showRow
public final void showRow(int row) -
sortByColumn
-
verticalHeader
-
wordWrap
-
currentChanged
- Overrides:
currentChanged
in classQAbstractItemView
-
doItemsLayout
- Overrides:
doItemsLayout
in classQAbstractItemView
-
horizontalOffset
- Specified by:
horizontalOffset
in classQAbstractItemView
-
horizontalScrollbarAction
- Overrides:
horizontalScrollbarAction
in classQAbstractItemView
-
indexAt
- Specified by:
indexAt
in classQAbstractItemView
-
initViewItemOption
- Overrides:
initViewItemOption
in classQAbstractItemView
-
isIndexHidden
- Specified by:
isIndexHidden
in classQAbstractItemView
-
moveCursor
@QtUninvokable protected QModelIndex moveCursor(QAbstractItemView.CursorAction cursorAction, Qt.KeyboardModifiers modifiers)- Specified by:
moveCursor
in classQAbstractItemView
-
paintEvent
- Overrides:
paintEvent
in classQAbstractScrollArea
-
scrollContentsBy
- Overrides:
scrollContentsBy
in classQAbstractScrollArea
-
scrollTo
- Specified by:
scrollTo
in classQAbstractItemView
-
selectedIndexes
- Overrides:
selectedIndexes
in classQAbstractItemView
-
selectionChanged
- Overrides:
selectionChanged
in classQAbstractItemView
-
setModel
- Overrides:
setModel
in classQAbstractItemView
-
setRootIndex
- Overrides:
setRootIndex
in classQAbstractItemView
-
setSelection
- Specified by:
setSelection
in classQAbstractItemView
-
setSelectionModel
- Overrides:
setSelectionModel
in classQAbstractItemView
-
sizeHintForColumn
- Overrides:
sizeHintForColumn
in classQAbstractItemView
-
sizeHintForRow
- Overrides:
sizeHintForRow
in classQAbstractItemView
-
timerEvent
- Overrides:
timerEvent
in classQAbstractItemView
-
updateGeometries
- Overrides:
updateGeometries
in classQAbstractItemView
-
verticalOffset
- Specified by:
verticalOffset
in classQAbstractItemView
-
verticalScrollbarAction
- Overrides:
verticalScrollbarAction
in classQAbstractItemView
-
viewportSizeHint
- Overrides:
viewportSizeHint
in classQAbstractItemView
-
visualRect
- Specified by:
visualRect
in classQAbstractItemView
-
visualRegionForSelection
- Specified by:
visualRegionForSelection
in classQAbstractItemView
-