Problems with MDI Template of KDevelop 1.3beta1
Pascal Francq
pfrancq at ulb.ac.be
Tue Dec 5 10:27:40 UTC 2000
On Monday 04 December 2000 11:32, Ralf Nolden wrote:
> Pascal Francq wrote:
> > Ralf
> >
> > I Use KDE 2.0 (and Qt 2.2.1). But, the MDI application and SDI
> > application inherits the same base class (KMainApplication), so have the
> > same CreateGUI method. So why does it work 100% with SDI, and never (for
> > me) or sometimes (for you) with MDI?
> >
> > Pal.
>
> ;) If I knew that I´d tell you ;) Well, I´ll have another look as well,
> whoever finds the cause first gains the credits ;)
>
> Ralf
1°)
Ok, I find the problem. It's in main:
When you create the KAboutData the line begins with:
KAboutData aboutData( "testmdi", I18N_NOOP("Tmp"),
In particular, the name is set to testmdi whatever the name of the
application is. So, it try to look after "testmdiui.rc" which it doesn't find
because it is "myappui.rc". So you must change in the template to have:
KAboutData aboutData( "myapp", I18N_NOOP("Tmp"),
2°)
An other problems, is that whan you start the application from KDevelop, it
needs that the ".rc" is install in ${HOME}/.kde2/share/config, and when you
run it from the console it uses the file from the local dir.
To change that, you must make a copy of the rc file in the "top" directory of
the project, and then there are no problems to run it from KDevelop without
installing it.
Pal.
--
Ir. Pascal Francq
Researcher
Université Libre de Bruxelles
CAD/CAM Department
Avenue F.D. Roosevelt, 50
CP 165/14
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 47 24
ICQ: 91206668
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list