Results 1 to 5 of 5

Thread: Vertical QTabBar

  1. #1
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Vertical QTabBar

    How could I modify a QTabBar at runtime such that it switches between vertical and horizontal orientation of the tabs ? (similar to QToolBar, but I need the widget to change it's orientation)

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Vertical QTabBar

    If the QTabBar is inside a QTabWidget then you could use QTabWidget::setTabPosition.

  3. The following user says thank you to marcel for this useful post:

    OriginalCopy (4th November 2007)

  4. #3
    Join Date
    Sep 2007
    Posts
    18
    Thanks
    3

    Post Re: Vertical QTabBar

    OriginalCopy,
    I hope instead of writing a new widget from scratch, for the time being, we can have a
    1) QTabWIdget, then
    2) setTabPosition(QTabWidget::East or West)
    3) Then Fix the widget width to some constant value say (23).
    like...
    QTabWidget::setFixedWidth(23);

    We hope that In future versions of Qt, we will find a readymade Vertcal TabBar
    -James

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Vertical QTabBar

    Qt Code:
    1. tabBar->setShape(QTabBar::RoundedWest);
    To copy to clipboard, switch view to plain text mode 
    ?
    J-P Nurmi

  6. The following user says thank you to jpn for this useful post:

    dyams (5th November 2007)

  7. #5
    Join Date
    Sep 2007
    Posts
    18
    Thanks
    3

    Default Re: Vertical QTabBar

    Thanks jpn

Similar Threads

  1. Help on QTabBar colors
    By smacchia in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2012, 16:48
  2. Vertical Scroll Bar - Style Sheet
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2007, 19:03
  3. 4.3: Styling vertical QSlider
    By Angelo Moriconi in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2007, 16:04
  4. Hiding the QTabBar of a QTabWidget
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2007, 14:59
  5. problems about QTabBar
    By qtopiahooo in forum Qt Programming
    Replies: 4
    Last Post: 10th October 2006, 10:05

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.