java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QObject
io.qt.widgets.QWidget
io.qt.widgets.QTabWidget
- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QTabWidget extends QWidget
Stack of tabbed widgets
Java wrapper for Qt class QTabWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTabWidget.TabPosition
Java wrapper for Qt enum QTabWidget::TabPositionstatic class
QTabWidget.TabShape
Java wrapper for Qt enum QTabWidget::TabShapeNested 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 QObject.Signal1<@QtPrimitiveType Integer>
currentChanged
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.QObject.Signal1<@QtPrimitiveType Integer>
tabBarClicked
QObject.Signal1<@QtPrimitiveType Integer>
tabBarDoubleClicked
QObject.Signal1<@QtPrimitiveType Integer>
tabCloseRequested
Fields inherited from class io.qt.widgets.QWidget
customContextMenuRequested, windowIconChanged, windowIconTextChanged, windowTitleChanged
-
Constructor Summary
Constructors Modifier Constructor Description QTabWidget()
Overloaded constructor forQTabWidget(io.qt.widgets.QWidget)
withparent = null
.protected
QTabWidget(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QTabWidget(QtObject.QPrivateConstructor p)
Constructor for internal use only.QTabWidget(QWidget parent)
-
Method Summary
Modifier and Type Method Description int
addTab(QWidget widget, QIcon icon, String label)
int
addTab(QWidget widget, String arg__2)
protected void
changeEvent(QEvent arg__1)
void
clear()
QWidget
cornerWidget()
Overloaded function forcornerWidget(io.qt.core.Qt.Corner)
withcorner = io.qt.core.Qt.Corner.TopRightCorner
.QWidget
cornerWidget(Qt.Corner corner)
int
count()
int
currentIndex()
QWidget
currentWidget()
boolean
documentMode()
Qt.TextElideMode
elideMode()
boolean
event(QEvent arg__1)
boolean
hasHeightForWidth()
int
heightForWidth(int width)
QSize
iconSize()
int
indexOf(QWidget widget)
protected void
initStyleOption(QStyleOptionTabWidgetFrame option)
int
insertTab(int index, QWidget widget, QIcon icon, String label)
int
insertTab(int index, QWidget widget, String arg__3)
boolean
isMovable()
boolean
isTabEnabled(int index)
boolean
isTabVisible(int index)
protected void
keyPressEvent(QKeyEvent arg__1)
QSize
minimumSizeHint()
protected void
paintEvent(QPaintEvent arg__1)
void
removeTab(int index)
protected void
resizeEvent(QResizeEvent arg__1)
void
setCornerWidget(QWidget w)
Overloaded function forsetCornerWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Corner)
withcorner = io.qt.core.Qt.Corner.TopRightCorner
.void
setCornerWidget(QWidget w, Qt.Corner corner)
void
setCurrentIndex(int index)
void
setCurrentWidget(QWidget widget)
void
setDocumentMode(boolean set)
void
setElideMode(Qt.TextElideMode mode)
void
setIconSize(QSize size)
void
setMovable(boolean movable)
protected void
setTabBar(QTabBar arg__1)
void
setTabBarAutoHide(boolean enabled)
void
setTabEnabled(int index, boolean enabled)
void
setTabIcon(int index, QIcon icon)
void
setTabPosition(QTabWidget.TabPosition position)
void
setTabsClosable(boolean closeable)
void
setTabShape(QTabWidget.TabShape s)
void
setTabText(int index, String text)
void
setTabToolTip(int index, String tip)
void
setTabVisible(int index, boolean visible)
void
setTabWhatsThis(int index, String text)
void
setUsesScrollButtons(boolean useButtons)
protected void
showEvent(QShowEvent arg__1)
QSize
sizeHint()
QTabBar
tabBar()
boolean
tabBarAutoHide()
QIcon
tabIcon(int index)
protected void
tabInserted(int index)
QTabWidget.TabPosition
tabPosition()
protected void
tabRemoved(int index)
boolean
tabsClosable()
QTabWidget.TabShape
tabShape()
String
tabText(int index)
String
tabToolTip(int index)
String
tabWhatsThis(int index)
boolean
usesScrollButtons()
QWidget
widget(int index)
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, contextMenuEvent, contextMenuPolicy, createWindowContainer, createWindowContainer, createWindowContainer, createWindowContainer, createWinId, cursor, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, grab, grab, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasMouseTracking, hasTabletTracking, height, heightMM, hide, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, 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, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintEngine, 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, 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, wheelEvent, 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, eventFilter, 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, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
currentChanged
-
tabBarClicked
-
tabBarDoubleClicked
-
tabCloseRequested
-
-
Constructor Details
-
QTabWidget
public QTabWidget()Overloaded constructor for
QTabWidget(io.qt.widgets.QWidget)
withparent = null
. -
QTabWidget
-
QTabWidget
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QTabWidget
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
addTab
-
addTab
-
clear
-
cornerWidget
Overloaded function for
cornerWidget(io.qt.core.Qt.Corner)
withcorner = io.qt.core.Qt.Corner.TopRightCorner
. -
cornerWidget
-
count
-
currentIndex
-
currentWidget
-
documentMode
-
elideMode
-
iconSize
-
indexOf
-
insertTab
-
insertTab
-
isMovable
-
isTabEnabled
-
isTabVisible
-
removeTab
-
setCornerWidget
Overloaded function for
setCornerWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Corner)
withcorner = io.qt.core.Qt.Corner.TopRightCorner
. -
setCornerWidget
-
setCurrentIndex
public final void setCurrentIndex(int index) -
setCurrentWidget
-
setDocumentMode
-
setElideMode
-
setIconSize
-
setMovable
-
setTabBar
-
setTabBarAutoHide
-
setTabEnabled
-
setTabIcon
-
setTabPosition
-
setTabShape
-
setTabText
-
setTabToolTip
-
setTabVisible
-
setTabWhatsThis
-
setTabsClosable
-
setUsesScrollButtons
-
tabBar
-
tabBarAutoHide
-
tabIcon
-
tabPosition
-
tabShape
-
tabText
-
tabToolTip
-
tabWhatsThis
-
tabsClosable
-
usesScrollButtons
-
widget
-
changeEvent
- Overrides:
changeEvent
in classQWidget
-
event
-
hasHeightForWidth
- Overrides:
hasHeightForWidth
in classQWidget
-
heightForWidth
- Overrides:
heightForWidth
in classQWidget
-
initStyleOption
-
keyPressEvent
- Overrides:
keyPressEvent
in classQWidget
-
minimumSizeHint
- Overrides:
minimumSizeHint
in classQWidget
-
paintEvent
- Overrides:
paintEvent
in classQWidget
-
resizeEvent
- Overrides:
resizeEvent
in classQWidget
-
showEvent
-
sizeHint
-
tabInserted
-
tabRemoved
-