7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
23 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
25 Q_PROPERTY(
bool drawBase READ drawBase WRITE setDrawBase)
27 Q_PROPERTY(
Qt::TextElideMode elideMode READ elideMode WRITE setElideMode)
28 Q_PROPERTY(
bool usesScrollButtons READ usesScrollButtons WRITE setUsesScrollButtons)
29 Q_PROPERTY(
bool tabsClosable READ tabsClosable WRITE setTabsClosable)
31 WRITE setSelectionBehaviorOnRemove)
32 Q_PROPERTY(
bool expanding READ expanding WRITE setExpanding)
34 Q_PROPERTY(
bool documentMode READ documentMode WRITE setDocumentMode)
35 Q_PROPERTY(
bool autoHide READ autoHide WRITE setAutoHide)
36 Q_PROPERTY(
bool changeCurrentOnDrag READ changeCurrentOnDrag WRITE setChangeCurrentOnDrag)
59 void setShape(Shape shape);
67 void removeTab(
int index);
68 void moveTab(
int from,
int to);
70 bool isTabEnabled(
int index)
const;
73 bool isTabVisible(
int index)
const;
74 void setTabVisible(
int index,
bool visible);
93#if QT_CONFIG(whatsthis)
104 int currentIndex()
const;
107 QSize sizeHint()
const override;
108 QSize minimumSizeHint()
const override;
110 void setDrawBase(
bool drawTheBase);
111 bool drawBase()
const;
116 bool usesScrollButtons()
const;
117 void setUsesScrollButtons(
bool useButtons);
119 bool tabsClosable()
const;
120 void setTabsClosable(
bool closable);
125 SelectionBehavior selectionBehaviorOnRemove()
const;
126 void setSelectionBehaviorOnRemove(SelectionBehavior behavior);
128 bool expanding()
const;
129 void setExpanding(
bool enabled);
131 bool isMovable()
const;
132 void setMovable(
bool movable);
134 bool documentMode()
const;
135 void setDocumentMode(
bool set);
137 bool autoHide()
const;
138 void setAutoHide(
bool hide);
140 bool changeCurrentOnDrag()
const;
141 void setChangeCurrentOnDrag(
bool change);
143#if QT_CONFIG(accessibility)
149 void setCurrentIndex(
int index);
160 virtual QSize minimumTabSizeHint(
int index)
const;
161 virtual void tabInserted(
int index);
162 virtual void tabRemoved(
int index);
163 virtual void tabLayoutChange();
173 void mouseDoubleClickEvent(
QMouseEvent *)
override;
174#if QT_CONFIG(wheelevent)
175 void wheelEvent(QWheelEvent *
event)
override;
177 void keyPressEvent(
QKeyEvent *)
override;
178 void changeEvent(
QEvent *)
override;
180 virtual void initStyleOption(QStyleOptionTab *
option,
int tabIndex)
const;
182#if QT_CONFIG(accessibility)
183 friend class QAccessibleTabBar;
The QColor class provides colors based on RGB, HSV or CMYK values.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QIcon class provides scalable icons in different modes and states.
The QKeyEvent class describes a key event.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QResizeEvent class contains event parameters for resize events.
The QShowEvent class provides an event that is sent when a widget is shown.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTabBar class provides a tab bar, e.g.
void currentChanged(int index)
This signal is emitted when the tab bar's current tab changes.
void tabBarDoubleClicked(int index)
This signal is emitted when the user double clicks on a tab at index.
void tabCloseRequested(int index)
void tabMoved(int from, int to)
void tabBarClicked(int index)
This signal is emitted when user clicks on a tab at an index.
Shape
This enum type lists the built-in shapes supported by QTabBar.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei const GLuint GLboolean enabled
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
QFuture< QSet< QChar > > set
[10]