A container for other widgets that provides a tab bar to switch between them.  
 More...
#include <TabWidget.h>
Inherits QTabWidget.
Inherited by AzQtComponents::DockTabWidget.
 | 
| 
  | TabWidget (QWidget *parent=nullptr) | 
|   | 
|   | TabWidget (TabWidgetActionToolBar *actionToolBar, QWidget *parent=nullptr) | 
|   | 
| 
void  | setCustomTabBar (TabBar *tabBar) | 
|   | Sets a custom tab bar overriding the default one. 
  | 
|   | 
| 
void  | setActionToolBar (TabWidgetActionToolBar *actionToolBar) | 
|   | Adds or replaces the action toolbar of the widget. Implicitly sets actionToolBarEnabled. 
  | 
|   | 
| 
TabWidgetActionToolBar *  | actionToolBar () const | 
|   | Returns the action toolbar, or nullptr if not set. 
  | 
|   | 
| void  | setActionToolBarVisible (bool visible=true) | 
|   | 
| 
bool  | isActionToolBarVisible () const | 
|   | Returns true if the action toolbar is visible. 
  | 
|   | 
| 
void  | setOverflowButtonSpacing (bool enable) | 
|   | Enables extra space between the tabs and the action toolbar to allow easier dragging. 
  | 
|   | 
| 
void  | resizeEvent (QResizeEvent *resizeEvent) override | 
|   | Overrides the QTabWidget resizeEvent function to account for tab sizing. 
  | 
|   | 
 | 
| 
void  | tabInserted (int index) override | 
|   | 
| 
void  | tabRemoved (int index) override | 
|   | 
 | 
| 
bool  | actionToolBarVisible | 
|   | Visibility of the action toolbar. 
  | 
|   | 
A container for other widgets that provides a tab bar to switch between them. 
 
◆ TabWidget()
Alternate constructor to pre-populate the action toolbar. 
- Parameters
 - 
  
    | actionToolBar | The action toolbar to show. Implicitly sets actionToolBarEnabled.  | 
    | parent | The parent widget.  | 
  
   
 
 
◆ applySecondaryStyle()
  
  
      
        
          | static void AzQtComponents::TabWidget::applySecondaryStyle  | 
          ( | 
          TabWidget *  | 
          tabWidget,  | 
         
        
           | 
           | 
          bool  | 
          bordered = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Applies the "Secondary" style class to a TabWidget. @guidepage uidev-tab-component.html 
 
 
◆ loadConfig()
  
  
      
        
          | static Config AzQtComponents::TabWidget::loadConfig  | 
          ( | 
          QSettings &  | 
          settings | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Sets the tab widget style configuration. 
- Parameters
 - 
  
    | settings | The settings object to load the configuration from.  | 
  
   
- Returns
 - The new configuration of the tab widget. 
 
 
 
◆ setActionToolBarVisible()
      
        
          | void AzQtComponents::TabWidget::setActionToolBarVisible  | 
          ( | 
          bool  | 
          visible = true | ) | 
           | 
        
      
 
Sets the visibility of the action toolbar. If none is set, it creates and displays a default one. 
 
 
The documentation for this class was generated from the following file:
- Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/TabWidget.h