Results 1 to 6 of 6

Thread: Add multiple widget to QTabWidget Tab

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    62
    Thanked 260 Times in 246 Posts

    Default Re: Add multiple widget to QTabWidget Tab

    Using layouts, nested layouts tutorial.
    QLayout class reference (look at "inherited by")

  2. #2
    Join Date
    Feb 2008
    Posts
    25
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11
    Thanks
    3

    Default Re: Add multiple widget to QTabWidget Tab

    I added the widgets to a QHBoxLayout. But they still look stacked on top of each other in the tab.

    I tried to use the QTabWidget setLayout option, but that didn't work out so well for me.

    I know I am missing something ridiculously stupid here.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Add multiple widget to QTabWidget Tab

    Read through the Tab Dialog Example or in Assistant for inspiration

  4. The following user says thank you to ChrisW67 for this useful post:

    Rooster (12th November 2010)

Similar Threads

  1. How to add close button to each tab widget Qtabwidget?
    By kishore7771 in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2010, 09:42
  2. Replies: 1
    Last Post: 4th March 2010, 18:57
  3. QTabWidget multiple tab show problem!
    By bangqianchen in forum Qt Programming
    Replies: 2
    Last Post: 14th January 2010, 01:09
  4. QTabWidget: corner widget is not shown
    By dv_ in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 18:30
  5. Replies: 0
    Last Post: 21st December 2006, 12:48

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.