Skip to content

LysanderGG/A-Better-QTabBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Better QTabBar

I had to work with Qt's QTabBar and found that a few features were missing. So here is a reimplementation of it to provide these functionalities.

Added features:

  • Tabs closable with the mouse middle button.
  • Scrollable tabs to reorder them.
  • Menu to list up the tabs instead of the default ugly arrow buttons.

Results

Scroll

Menu

Classes details

Note: The methods of GGTabBar are directly accessible from GGScrollableTabBar and GGTabBarWidget.

GGTabBar

Tabs are closable with the mouse middle button.

GGScrollableTabBar

It is a "scrollable" GGTabBar. Its tabs are movable and when you move a tab outside of the TabBar, it is scrolled. When focusing a tab, the GGScrollableTabBar will automatically scroll to make it visible.

GGTabBarWidget

It handles a GGScrollableTabBar and a Menu containing a list of direct links to all the tabs. The actions in the Menu are sorted by alphabetical order.

About

Reimplementation of the Qt class QTabBar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published