Results 1 to 3 of 3

Thread: Changing the QTabBar to an offset position

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Changing the QTabBar to an offset position

    Hello!

    I'ld like to know how to change the position of the QTabBar in a QTabView/Widget or similar use like in the image below (do an offset from the 4 basic positions to a specific desired one). I image it will be something like the thread http://www.qtcentre.org/threads/1329...=QTabBar+place, but I'm not sure where the differences would lie.

    Tab.jpg

    Thanks,

    Momergil

  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: Changing the QTabBar to an offset position

    Your image is a status bar that happens to contain a tab bar widget. That is how you would construct it in Qt too.
    QStatusBar::insertWidget() or QStatusBar::insertPermanentWidget(), and
    QTabBar

  3. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Changing the QTabBar to an offset position

    Quote Originally Posted by ChrisW67 View Post
    Your image is a status bar that happens to contain a tab bar widget. That is how you would construct it in Qt too.
    QStatusBar::insertWidget() or QStatusBar::insertPermanentWidget(), and
    QTabBar
    \o/

    I must admit I'm quite shocked with that affirmative o.O I never actually looked to that item by that way, since when using the software I always looked at it not as a mainwindow containing a status bar which happen to have a QTabBar, but as a custom QTabWidget that had its tab offset and happen to have a status section in the area were it would have been otherwise. Maybe the view of the entire widget will change the solution?

    Tab.jpg

Similar Threads

  1. Replies: 0
    Last Post: 12th November 2013, 10:40
  2. QTabBar stylesheet references (changing base color)
    By NoMa in forum Qt Programming
    Replies: 13
    Last Post: 4th April 2011, 10:49
  3. QwtLegend Position changing problem?
    By umituzun84 in forum Qwt
    Replies: 1
    Last Post: 19th March 2010, 14:25
  4. Replies: 2
    Last Post: 12th June 2009, 11:55
  5. Replies: 3
    Last Post: 12th April 2006, 10:35

Tags for this Thread

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.