[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    KDlgLoader
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       1999-06-22 15:14:11
[Download RAW message or body]


Hello, I am using Kdevelop 0.4 (neat program!) and have a weird problem.
Ok, it's probably because I don't know what I'm doing but:

I am atrying to load a dialog dynamically. I liked the KDlgLoader class
statically into my program, to make distribution easier (but that is not
the problem).

What happens is that when I do this:

    QDialog *d=new QDialog(0,0,true);
    QString path=(KApplication::kde_datadir()+"/newkrn/dialogs/serverprop.kdevdlg");
    KDlgLoader *l=new KDlgLoader(d);
    l->openDialog(path);

    int res=d->exec();

I get first an empty dialog. After I close it, I get the real one.
Any ideas?

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
An opinion you can't give reasons for is not an opinion worth having (I)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic