[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: RE: Newbie question
From: "Martin Welch" <martin () welch ! eclipse ! co ! uk>
Date: 2004-04-19 21:23:47
Message-ID: GIEKKMAAMELBNKEJJKHGGEOPCMAA.martin () welch ! eclipse ! co ! uk
[Download RAW message or body]
>> No, it creates the window, widget are created hidden but fully
functional.
I stand corrected. Thanks.
Martin
-----Original Message-----
From: Kevin Krammer [mailto:kevin.krammer@gmx.at]
Sent: 16 April 2004 18:12
To: kde-devel@mail.kde.org
Subject: Re: Newbie question
On Friday 16 April 2004 18:54, Martin Welch wrote:
> >>Yes. It's sounding like you need to subclass KMainWindow. Your
>
> subclass's constructor
>
> >>corresponds to WM_CREATE, as will the constructor of any QWidget
>
> subclasses you make.
>
> No. The c-tor constructs the object, not the underlying window:
No, it creates the window, widget are created hidden but fully functional.
> >>along with other things. If you need to process something just before
> >> the window is shown, override polish().
>
> Ahhh. That's what I was after. Thanks.
You could also look at showEvent()
> >>As far as destruction goes, there are several ways of doing it.
> >>Overriding the destructor, handling closeEvent(), connecting
> >>lastWindowClosed() (from KApplication, IIRC), etc.
>
> The d-tor is too late. closeEvent is too early and can be used to cancel
> the close. I need an event or method where the window is about to be
> unconditionally destroyed, not the object. In fact, the opposite of
polish.
The window is destroyed when the object is. i.e. the window exists until its
destructor is invoked
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
>> 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