QTabBar Class Reference |
Constant | Value | Description |
---|---|---|
QTabBar::RoundedNorth | 0 | The normal rounded look above the pages |
QTabBar::RoundedSouth | 1 | The normal rounded look below the pages |
QTabBar::RoundedWest | 2 | The normal rounded look on the left side of the pages |
QTabBar::RoundedEast | 3 | The normal rounded look on the right side the pages |
QTabBar::TriangularNorth | 4 | Triangular tabs above the pages. |
QTabBar::TriangularSouth | 5 | Triangular tabs similar to those used in the Excel spreadsheet, for example |
QTabBar::TriangularWest | 6 | Triangular tabs on the left of the pages. |
QTabBar::TriangularEast | 7 | Triangular tabs on the right of the pages. |
This property holds the number of tabs in the tab bar.
Access functions:
This property holds the index of the tab bar's visible tab.
Access functions:
This property holds defines whether or not tabbar should draw it's base.
If true then QTabBar draws a base in relation to the styles overlab. Otherwise only the tabs are drawn.
Access functions:
See also QStyle::pixelMetric() and QStyle::PM_TabBarBaseOverlap.
This property holds the shape of the tabs in the tab bar.
The value of this property is one of the following: RoundedNorth (default), RoundedSouth, TriangularNorth or TriangularBelow.
Access functions:
See also Shape.
Creates a new tab bar with the given parent.
Destroys the tab bar.
Adds a new tab with text text. Returns the new tab's index.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Adds a new tab with icon icon and text text. Returns the new tab's index.
This signal is emitted when the tab bar's current tab changes. The new current has the given index.
Inserts a new tab with text text at position index. If index is out of range, the new tab is appened. Returns the new tab's index.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Inserts a new tab with icon icon and text text at position index. If index is out of range, the new tab is appended. Returns the new tab's index.
Returns true if the tab at position index is enabled; otherwise returns false.
Removes the tab at position index.
Sets the data of the tab at position index to data.
See also tabData().
If enabled is true then the tab at position index is enabled; otherwise the item at position index is disabled.
See also isTabEnabled().
Sets the icon of the tab at position index to icon.
See also tabIcon().
Sets the text of the tab at position index to text.
See also tabText().
Sets the tool tip of the tab at position index to tip.
See also tabToolTip().
Returns the datad of the tab at position index, or a null variant if index is out of range.
See also setTabData().
Returns the icon of the tab at position index, or a null icon if index is out of range.
See also setTabIcon().
This virtual handler is called after a new tab was added or inserted at position index.
See also tabRemoved().
This virtual handler is called whenever the tab layout changes.
See also tabRect().
Returns the visual rectangle of the of the tab at position index, or a null rectangle if index is out of range.
This virtual handler is called after a tab was removed from position index.
See also tabInserted().
Returns the size hint for the tab at position index.
Returns the text of the tab at position index, or an empty string if index is out of range.
See also setTabText().
Returns the tool tip of the tab at position index, or an empty string if index is out of range.
See also setTabToolTip().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.0 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com