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

List:       kde-devel
Subject:    Re: Calling show() on a QDialog
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-08-28 22:20:16
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 28 August 2002 02:36 pm, Neil Stevens wrote:
> On Wednesday August 28, 2002 02:28, Waldo Bastian wrote:
> > On Wednesday 28 August 2002 02:13 pm, Shu-yu Guo wrote:
> > > Well, why is it immediately disappearing then, because it has no
> > > event-loop?
> >
> > Do you create the dialog on the stack or on the heap (with new)? If you
> > create it on the stack, the dialog will be deleted when your code runs
> > out of the scope in which the dialog was defined.
> >
> > E.g.
> > void myFunction()
> > {
> >    MyDialog dlg;
> >    dlg.show();
> > } <--- dlg will be deleted here.
>
> Good call!  I'm disappointed I didn't think of that, though.  :-)

It's one of the KProcess faqs :-)

Cheers,
Waldo
- -- 
bastian@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bUygN4pvrENfboIRAht+AJ9CWPdkcAJ1f8ZpaRw5JJzC/BevTwCfaw6A
FaMLHyrKlS5MqmIYB0MvgwI=
=KZ0O
-----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