Results 1 to 7 of 7

Thread: width and height of QTabWidget

Hybrid View

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

    Default Re: width and height of QTabWidget

    Yes, I know. Subclass QTabWidget and you will have access to the protected function QTabWidget::tabBar(), which returns the tabbar. You can then use the functions mentioned earlier to set its height.

  2. #2
    Join Date
    May 2007
    Posts
    16
    Thanked 1 Time in 1 Post

    Default Re: width and height of QTabWidget

    QTabWidget::tabBar() returns const QTabBar(). So I canot call setFixedSize() on QTabWidget::tabBar()

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

    Default Re: width and height of QTabWidget

    Quote Originally Posted by chikkireddi View Post
    QTabWidget::tabBar() returns const QTabBar(). So I canot call setFixedSize() on QTabWidget::tabBar()
    Actually it returns a non-const pointer to QTabBar, whereas the method is a const-method:
    QTabBar* QTabWidget::tabBar() const
    J-P Nurmi

Similar Threads

  1. Increasing the width of a row in a TreeView
    By Shambhavi in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2006, 17:13

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
  •  
Qt is a trademark of The Qt Company.