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

Andreas Pakulat apaku at gmx.de
Wed Jul 21 20:21:10 CEST 2010


On 21.07.10 13:58:53, K. Frank wrote:
> 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.

Seems like splitters are special here, but if you try to drop it between
the table's label and the table itself you'll notice a blue bar
appearing, thats the drop-position to insert into normal
(horizontal,vertical,grid) layouts.

Andreas

-- 
You will visit the Dung Pits of Glive soon.



More information about the Qt-interest-old mailing list