Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::DockTabWidget Class Reference

Inherits AzQtComponents::TabWidget.

Signals

void tabIndexPressed (int index)
 
void tabCountChanged (int count)
 
void tabWidgetInserted (QWidget *widget)
 
void undockTab (int index)
 
void tabBarDoubleClicked ()
 

Public Member Functions

 DockTabWidget (QWidget *mainEditorWindow, QWidget *parent=nullptr)
 
int addTab (QDockWidget *page)
 
void removeTab (int index)
 
void removeTab (QDockWidget *page)
 
bool closeTabs ()
 
void moveTab (int from, int to)
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void finishDrag ()
 
- Public Member Functions inherited from AzQtComponents::TabWidget
 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.
 
TabWidgetActionToolBaractionToolBar () 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.
 

Static Public Member Functions

static bool IsTabbed (QDockWidget *dockWidget)
 
static DockTabWidgetParentTabWidget (QDockWidget *dockWidget)
 
- Static Public Member Functions inherited from AzQtComponents::TabWidget
static void applySecondaryStyle (TabWidget *tabWidget, bool bordered=true)
 
static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 Gets the default tab widget style configuration.
 

Protected Slots

bool handleTabCloseRequested (int index)
 
void handleTabAboutToClose ()
 
void handleTabIndexPressed (int index)
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void tabInserted (int index) override
 
void tabRemoved (int index) override
 
- Protected Member Functions inherited from AzQtComponents::TabWidget
void tabInserted (int index) override
 
void tabRemoved (int index) override
 

Additional Inherited Members

- Properties inherited from AzQtComponents::TabWidget
bool actionToolBarVisible
 Visibility of the action toolbar.
 

The documentation for this class was generated from the following file: