[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Usage of QLayout and QGroupBox in KDE
From: Mosfet <mosfet () jorsm ! com>
Date: 1999-08-04 12:04:14
[Download RAW message or body]
And a pretty good hint too, as when I recieved this email I was writing a
QVBoxLayout for a groupbox whose first item was layout->addSpacing(10); <grin>
On Wed, 04 Aug 1999, Reginald Stadlbauer wrote:
> On Wed, 04 Aug 1999, Stephan Kulow wrote:
> >Matthias Ettrich wrote:
> >>
> >> Hi,
> >>
> >> I noticed one slightly annoying thing with KDE-2.0's layout management: very
> >> few groupboxes get the layout right.
> >>
> >> Problem: the very first row often overlaps with the group box text.
> >>
> >> Qt-2.0 makes groupbox layouting finally easier. Simply remove all your custom
> >> layout code for the groupbox and create the groupbox with the new constructor:
> >>
> >>
> >> /*!
> >> Constructs a group box with a \a title. Child widgets will be arranged
> >> in \a strips rows or columns (depending on \a orientation).
> >>
> >> The \e parent and \e name arguments are passed to the QWidget constructor.
> >> */
> >>
> >> QGroupBox::QGroupBox( int strips, Orientation orientation,
> >> const QString &title, QWidget *parent,
> >> const char *name )
> >>
> >> That's it. Less code in KDE and looks nicer :-)
> >>
> >Well, but you can hardly blame KDE programmers.
>
> He doesn't blame anyone, it's just a hint :-))
>
> --
> Reggie
--
Daniel M. Duley - Unix developer & sys admin.
mosfet@kde.org
mosfet@jorsm.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic