Results 1 to 2 of 2

Thread: Solved: Adding widgets to QTabWidget layout

  1. #1
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Solved: Adding widgets to QTabWidget layout

    How do I add widgets to the layout of a tab in a QTabWidget ? I'm assuming each tab has it's own layout.

    In the object inspector I can see that each tab has the broken layout icon. I select all the widgets in one of the tabs but when I right click on the tab name in the inspector, there is no Layout submenu.

    Update: I found the answer: each tab has it's own layout, but layouts are controlled by the tab widget not the tab. Right click on the parent tab widget to select the layout.
    Last edited by koan; 25th November 2010 at 14:50. Reason: Found the answer

  2. #2

    Default Re: Solved: Adding widgets to QTabWidget layout

    I'm not sure but the following worked for me:

    tabWidget->addTab(Mywebview,"http://www.google.com");

    I hope it helps.

Similar Threads

  1. Replies: 6
    Last Post: 23rd August 2010, 17:56
  2. Adding a Layout to QMainWindow
    By Chiggins in forum Qt Programming
    Replies: 2
    Last Post: 7th June 2010, 06:25
  3. Replies: 5
    Last Post: 18th April 2010, 23:31
  4. Replies: 5
    Last Post: 18th March 2010, 09:54
  5. Adding QGroupBox to QTabWidget
    By mclark in forum Newbie
    Replies: 2
    Last Post: 17th January 2007, 16:27

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.