[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Question about XML-GUIs
From: Michael Pyne <pynm0001 () comcast ! net>
Date: 2003-08-16 4:30:27
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 15 August 2003 17:17, Christian Nitschkowski wrote:
> The app complained about adding a layout although some other layout already
> exists.
I ran into the layout warning problem a few weeks ago.
Trust me, it's best just to have your two widgets which are ordered in a
GridLayout to just inherit from the QWidget. It's actually not that hard,
I've found out.
Your program would go from
KMainWindow -> (QWidget, QWidget)
to
KMainWindow -> QWidget - with Layout -> (QWidget, QWidget).
In your constructor, just add a call to create a QWidget, and add the layout
and the two child widgets to that QWidget instead. The other change you have
to make is calling KMainWindow::setCentralWidget on your parent widget.
It's not that hard, and the benefits are certainly worth the hassle. :)
- Michael Pyne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/PbNrqjQYp5Omm0oRAn7NAJ9b4/ej0zGS6qA5G/oo5rrsAssBugCbBmTw
UxuwTC6/u1pdP4ORegEmoTI=
=4aAN
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic