[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to load UI files directly be a factory?
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2003-09-11 18:38:19
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 11 September 2003 06:09, Dirk Schönberger wrote:
> Please note that this class is not part of the default Qt lib, but you have
> to link yet another library (libqui.la).
> Perhaps this is a reason that the use of dynamically generated UIs is not
> promoted anymore?
well, there are better reasons... such as that it means more disk IO, is
slower due to run-time XML processing, is more fragile since it can be
changed post-compile which is when programmatic manipulation of the UI is
cemented, etc....
> Another reason is that the XML which is generated by Qt Designer rather
> ugly, i.e. you don't really want to edit it manually (just IMO of course)
and why does this matter? you don't hand-edit it, though i have done just so
on several occassions. it's like saying that the code MOC outputs is ugly.
yeah, so?
> > I think it would greatly enhance KDE as a whole, if UI files are used
> > to create dialoges and GUIs instead of hardcoded widgets. This makes
> > it possible even for non-programers to change the GUI (e.g. for
> > improving usability) and it would greatly reduce the time needed to
> > develop an application. I think, NextStep and Apple OSX have a similar
> > method, using InterfaceBuilder (or Gorm in the case of GnuSTEP).
>
> I think it would be the right direction, but I am not quite sure if Qt
> Designer is the right tool. I would prefer a XML DTD similar to Mozilla XUL
> (please see also the KaXul and uXul projects in kdenonbeta), or based on
> XMLGUI.
the DTD is largely irrelevant and XMLGUI is completely not suited for this
sort of thing (it's very good at something rather different).
Qt Designer as a tool is _very_ useful, and has several important positive
side effects. please use it whenever and wherever possible for complex (e.g.
more than a 2 or 3 widgets) dialogs and sets of widgets.
- --
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/YMEb1rcusafx20MRAqdaAJ41m/338zKFpid9Kmv7BmjPDSqw3QCfV9Yn
Qcr9zsaDMYAk5KyXkQQmI/Q=
=Qvwd
-----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