45 #include <QtGui/qwidget.h> 70 bool usesScrollButtons;
81 enum
Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast,
83 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN) 84 , RoundedAbove = RoundedNorth, RoundedBelow = RoundedSouth,
85 TriangularAbove = TriangularNorth, TriangularBelow = TriangularSouth
101 void setShape(
Shape shape);
109 void removeTab(
int index);
110 void moveTab(
int from,
int to);
112 bool isTabEnabled(
int index)
const;
113 void setTabEnabled(
int index,
bool);
119 void setTabTextColor(
int index,
const QColor &color);
122 void setTabIcon(
int index,
const QIcon &icon);
127 #ifndef QT_NO_TOOLTIP 132 #ifndef QT_NO_WHATSTHIS 141 int tabAt(
const QPoint &pos)
const;
143 int currentIndex()
const;
149 void setDrawBase(
bool drawTheBase);
150 bool drawBase()
const;
152 QSize iconSize()
const;
153 void setIconSize(
const QSize &size);
155 bool usesScrollButtons()
const;
156 void setUsesScrollButtons(
bool useButtons);
158 bool tabsClosable()
const;
159 void setTabsClosable(
bool closable);
167 bool expanding()
const;
168 void setExpanding(
bool enabled);
170 bool isMovable()
const;
171 void setMovable(
bool movable);
173 bool documentMode()
const;
174 void setDocumentMode(
bool set);
177 void setCurrentIndex(
int index);
180 void currentChanged(
int index);
181 void tabCloseRequested(
int index);
182 void tabMoved(
int from,
int to);
186 virtual void tabInserted(
int index);
187 virtual void tabRemoved(
int index);
188 virtual void tabLayoutChange();
198 #ifndef QT_NO_WHEELEVENT 220 #endif // QT_NO_TABBAR The QVariant class acts like a union for the most common Qt data types.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
The QWheelEvent class contains parameters that describe a wheel event.
ButtonPosition
This enum type lists the location of the widget on a tab.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QTabBar class provides a tab bar, e.g.
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Shape
This enum type lists the built-in shapes supported by QTabBar.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QResizeEvent class contains event parameters for resize events.
static const char * data(const QByteArray &arr)
The QShowEvent class provides an event that is sent when a widget is shown.
The QMouseEvent class contains parameters that describe a mouse event.
SelectionBehavior
This enum type lists the behavior of QTabBar when a tab is removed and the tab being removed is also ...
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 QStyleOptionTab class is used to describe the parameters for drawing a tab bar.
The QAccessibleTabBar class implements the QAccessibleInterface for tab bars.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
The QIcon class provides scalable icons in different modes and states.