[Qt-interest] Vertical tabs with icons instead text, tables with buttons, animated pictures on buttons
Adam Light
aclight at gmail.com
Sat Mar 26 16:21:02 CET 2011
On Fri, Mar 25, 2011 at 4:19 PM, Nicholas Shatokhin
<n.shatokhin at gmail.com> wrote:
> But problems with tabs. I can't set layouts on its. Every time changes
> layout of centralWindet, not Tab. What's wrong? I add layout to Tab
> manually, but how can I set autoresizing of it?
I have had this problem with QStackedWidget and QTabWidget widgets for
a while also, but I recently figured out how to set the layout for
each tab/page using Qt Designer 2.1. You first need to select the
proper tab/page from the list of objects on the right side of
designer. Then you must click on the parent widget in that list (the
QTabWidget or QStackedWidget). Then you can set the layout on the
tab/page by clicking one of the different layout buttons in the
toolbar. Note that you only select one item at a time--you don't want
to select *both* the tab/page and it's parent
QTabWidget/QStackedWidget.
I don't think this is very intuitive, but it was nice to finally
figure out how to make it work.
Adam
More information about the Qt-interest-old
mailing list