Results 1 to 4 of 4

Thread: QTabBar scrollarea possible to scroll the tabs with the right click ?

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation QTabBar scrollarea possible to scroll the tabs with the right click ?

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTabBar scrollarea possible to scroll the tabs with the right click ?

    I am not sure I understand what you are asking for. You want a scroll area with no controls for scrolling?

  3. #3
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar scrollarea possible to scroll the tabs with the right click ?

    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 ...
    Last edited by Alundra; 17th January 2016 at 21:34.

  4. #4
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar scrollarea possible to scroll the tabs with the right click ?

    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.

Similar Threads

  1. QDockWidget + QTabBar, but tabs don't move
    By NIteLordz in forum Qt Programming
    Replies: 11
    Last Post: 22nd January 2015, 18:06
  2. movable QTabBar or QTabWidget set some tabs fixed
    By fsmoke in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2014, 02:24
  3. Replies: 1
    Last Post: 8th January 2012, 23:37
  4. QTabBar make all tabs out of focus
    By migel in forum Newbie
    Replies: 1
    Last Post: 24th August 2011, 13:38
  5. QTabBar color in space inbetween tabs
    By AwDogsgo2Heaven in forum Newbie
    Replies: 1
    Last Post: 12th March 2010, 09:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.