PDA

View Full Version : QTabBar scrollarea possible to scroll the tabs with the right click ?



Alundra
17th January 2016, 04:01
Hi,
I don't find any way to have a scrollarea on the QTabBar to move the tabbar using right click (not using arrows).
Is it possible and if yes, how ?
Thanks

ChrisW67
17th January 2016, 06:33
I am not sure I understand what you are asking for. You want a scroll area with no controls for scrolling?

Alundra
17th January 2016, 16:22
Simply have all tabs even if it's not possible to show all using a scrollarea without scrollbar visible and using the right click to pan on the left and right.
The pan code of the scrollarea is not a problem, but the scrollarea for the tabbar is a problem ...

Alundra
18th January 2016, 04:22
I don't know how to achieve that but I found another way Qt already do correctly :
m_TabWidget->setUsesScrollButtons( false );
m_TabWidget->setElideMode( Qt::ElideRight );
That gives the same behavior than google chrome.