Results 1 to 3 of 3

Thread: changing the size of the tab width: QTabWidget

  1. #1
    Join Date
    Aug 2006
    Location
    troy, new york
    Posts
    24
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default changing the size of the tab width: QTabWidget

    hi,
    what i would like is to have the tab width of all the tabs be equal, please refer to the left hand side of the image below. i'm not sure if it's a QStyle thing, or whatever. if it is, i'm not that sure about adjusting pixmaps and such, nor how to code it correctly<still new to gui terms and meanings>. again i'd appreciate any help. thanks.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: changing the size of the tab width: QTabWidget

    Reimplement QTabBar::sizeHint(int index) and set this as the tab bar in you QTabWidget

  3. #3
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: changing the size of the tab width: QTabWidget

    Just wanted to say that that is a good looking app!
    Software Engineer



Similar Threads

  1. How to get size (length, width ....) of string or char
    By Krishnacins in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2006, 09:55
  2. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14
  3. How to obtain the width of a QTableWidget?
    By Giel Peters in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 22:34

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.