Results 1 to 2 of 2

Thread: How to change QTabWidget's tab positon?

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

    Default How to change QTabWidget's tab positon?

    In my program,I use QTabWidget. This unit has its own QTabBar.
    If I change the QTabBar's positon,It will work asBy change its "tabpositon" from "North" to "West")

    From this:

    To this:


    But I do not want this style.
    In the second, I will it performance like:

    Tab1
    Tab2

    instead of



    I want the text stay at a horizontal line instead of a vertical line.

    Could you give me some helps?Thans a lot!!
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to change QTabWidget's tab positon?

    Use removeTab(), your page is not deleted, then insertTab().

Similar Threads

  1. how to change the color of the frame
    By wagmare in forum Qt Programming
    Replies: 5
    Last Post: 12th May 2009, 12:46
  2. Change database data in the QTabelView
    By sophister in forum Qt Programming
    Replies: 3
    Last Post: 9th April 2009, 16:40
  3. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 16:56
  4. statusBar() message color change
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 23:20
  5. Can't change the text display of a QTreeview item.
    By johnny_sparx in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2006, 01:03

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.