43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtWidgets/qwidget.h>
52 class QStyleOptionTab;
59 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
61 Q_PROPERTY(
bool drawBase READ drawBase WRITE setDrawBase)
64 Q_PROPERTY(
bool usesScrollButtons READ usesScrollButtons WRITE setUsesScrollButtons)
65 Q_PROPERTY(
bool tabsClosable READ tabsClosable WRITE setTabsClosable)
67 WRITE setSelectionBehaviorOnRemove)
68 Q_PROPERTY(
bool expanding READ expanding WRITE setExpanding)
69 Q_PROPERTY(
bool movable READ isMovable WRITE setMovable)
70 Q_PROPERTY(
bool documentMode READ documentMode WRITE setDocumentMode)
71 Q_PROPERTY(
bool autoHide READ autoHide WRITE setAutoHide)
72 Q_PROPERTY(
bool changeCurrentOnDrag READ changeCurrentOnDrag WRITE setChangeCurrentOnDrag)
95 void setShape(
Shape shape);
103 void removeTab(
int index);
104 void moveTab(
int from,
int to);
106 bool isTabEnabled(
int index)
const;
109 bool isTabVisible(
int index)
const;
110 void setTabVisible(
int index,
bool visible);
124 #if QT_CONFIG(tooltip)
129 #if QT_CONFIG(whatsthis)
140 int currentIndex()
const;
146 void setDrawBase(
bool drawTheBase);
147 bool drawBase()
const;
152 bool usesScrollButtons()
const;
153 void setUsesScrollButtons(
bool useButtons);
155 bool tabsClosable()
const;
156 void setTabsClosable(
bool closable);
161 SelectionBehavior selectionBehaviorOnRemove()
const;
162 void setSelectionBehaviorOnRemove(SelectionBehavior behavior);
164 bool expanding()
const;
165 void setExpanding(
bool enabled);
167 bool isMovable()
const;
168 void setMovable(
bool movable);
170 bool documentMode()
const;
171 void setDocumentMode(
bool set);
173 bool autoHide()
const;
174 void setAutoHide(
bool hide);
176 bool changeCurrentOnDrag()
const;
177 void setChangeCurrentOnDrag(
bool change);
179 #ifndef QT_NO_ACCESSIBILITY
185 void setCurrentIndex(
int index);
196 virtual QSize minimumTabSizeHint(
int index)
const;
197 virtual void tabInserted(
int index);
198 virtual void tabRemoved(
int index);
199 virtual void tabLayoutChange();
210 #if QT_CONFIG(wheelevent)
211 void wheelEvent(QWheelEvent *
event)
override;
216 virtual void initStyleOption(QStyleOptionTab *
option,
int tabIndex)
const;
218 #ifndef QT_NO_ACCESSIBILITY
219 friend class QAccessibleTabBar;
The QColor class provides colors based on RGB, HSV or CMYK values.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
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 QMouseEvent class contains parameters that describe a mouse event.
virtual void timerEvent(QTimerEvent *event)
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QResizeEvent class contains event parameters for resize events. \inmodule QtGui.
The QShowEvent class provides an event that is sent when a widget is shown.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs.
void currentChanged(int index)
void tabBarDoubleClicked(int index)
void tabCloseRequested(int index)
void tabMoved(int from, int to)
void tabBarClicked(int index)
The QTimerEvent class contains parameters that describe a timer event.
The QVariant class acts like a union for the most common Qt data types.
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
#define Q_DISABLE_COPY(Class)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QT_REQUIRE_CONFIG(tabbar)
QFuture< QSet< QChar > > set
[10]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent