PDA

View Full Version : Qt Designer Solved: Adding widgets to QTabWidget layout



koan
25th November 2010, 10:04
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.

matoge
13th February 2011, 23:35
I'm not sure but the following worked for me:

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

I hope it helps.