From koffice-devel Sun Aug 22 18:57:57 2004 From: David Faure Date: Sun, 22 Aug 2004 18:57:57 +0000 To: koffice-devel Subject: Re: koffice/lib/kofficeui [PATCH] Message-Id: <200408222057.57905.faure () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=109320102115543 On Sunday 22 August 2004 15:55, p.stirnweiss_koffice@bluewin.ch wrote: > Here it is. I replaced the HBox and stuff by a grid layout. Thanks. > I used the same technique as Peter Simonsson for the margins part (setting > the GroupBox's layout column to auto and inserting the QGridLayout as a child > of the groupbox's layout. It works but I don't really understand the logic > behind it : why inserting the QGridLayout with the groupbox as a parent directly > doesn't work (the title is not taken into account) and inserting the QGridLayout > as a child of the groupbox's layout works. A layout normally occupies *all* the space in its parent widget. In the solution that doesn't work, the QGroupBox is given a QGridLayout as layout, so that layout occupies all the space in the parent widget -> title is overwritten. When using a QVGroupBox, the layout is told about the title, since QVGroupBox takes care of that. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org https://mail.kde.org/mailman/listinfo/koffice-devel