Results 1 to 4 of 4

Thread: QtabBar tabText from vertikally to horizontally

  1. #1
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QtabBar tabText from vertikally to horizontally

    Hello,

    I've got a QtabWidget with the tabs on the left side. Now i want change the design of the tabbar. I changed the backgroundcolor, margin and so on with stylesheets in QtDesigner und the size with the virtual function tabSizeHint.

    Now my problem is, that the tabText is still vertical and I don't know how to change it to horizontally.

    I tried it with "newTabBar:aintEvent(QPaintEvent * event)" but this changes only the hole tabBar and not the several tabs.
    Last edited by trusch; 20th June 2009 at 13:32. Reason: wrong title

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtabBar tabText from vertikally to horizontally

    Accoring to this thread from the qt-interest mailing list it is not possible. There's a patch mentioned that adds such an option, though. If you want to compile Qt youself, this might be an option.

  3. #3
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QtabBar tabText from vertikally to horizontally

    Thanks for this idea, but i can`t find this file: qt4-patch.tar.gz

    Do you know where i can find the patch?

  4. #4
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtabBar tabText from vertikally to horizontally

    No, but you could try and ask on the qt-interest list if anyone still has it. The task tracker entry for this issue hasn't been changed in a year, so I guess waiting for this to enter Qt could take some time...

Similar Threads

  1. Hiding a tab in QTabBar widget
    By erik in forum Qt Programming
    Replies: 9
    Last Post: 12th February 2017, 12:29
  2. Help on QTabBar colors
    By smacchia in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2012, 16:48
  3. Using QTabBar as QTabWidget replacement
    By invictus in forum Qt Programming
    Replies: 0
    Last Post: 16th August 2008, 01:57
  4. Problems with CSS for QTabBar and QTabWidget
    By visor_ua in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2008, 08:38
  5. problems about QTabBar
    By qtopiahooo in forum Qt Programming
    Replies: 4
    Last Post: 10th October 2006, 10:05

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.