[Qt-interest] Grouping existing widgets into a vertical splitter with Qt Designer

K. Frank kfrank29.c at gmail.com
Wed Jul 21 19:58:53 CEST 2010


Hi Andreas -

On Wed, Jul 21, 2010 at 12:15 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 21.07.10 17:08:06, Andre Somers wrote:
>> Op 21-7-2010 15:15, K. Frank schreef:
>> >
>> > I guess the vertical layout applied to the central widget blocks
>> > adding layouts to individual widgets.
>> >
>> > What the general rule?  Is it the case that you have to break down
>> > any and all surrounding layouts before you modify any layouts
>> > nested inside?
>> >
>> Unfortunately, yes. You *have* to build up the layout from the inside
>> out. That is an unfortunate limitation of Qt Designer IMHO.
>
> At least its possible in Qt4 to add new widgets into an existing layout (or
> remove them from it) without having to relayout everything. That wasn't
> possible in Qt3 days..

But how do you get the widgets to go where you want?

For example, in the example ui file I posted earlier in this thread,
how can I drop a widget -- say a QTextEdit -- in between the first
and second QTableWidgets wrapped in the horizontal splitter in the
middle (from top to bottom) section?

Just playing around, I can get the QTextEdit to end up in the
horizontal splitter, but it always ends up in the right-most
position, after the QTreeTable.

>
> Andreas

Thanks.


K. Frank




More information about the Qt-interest-old mailing list