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

List:       kde-devel
Subject:    Re: Closing windows?
From:       Luciano Montanaro <mikelima () cirulla ! net>
Date:       2004-10-21 9:18:04
Message-ID: 200410211118.04584.mikelima () cirulla ! net
[Download RAW message or body]

El Jueves 21 Octubre 2004 11:12, Lubos Lunak escribió:
> On Wednesday 20 of October 2004 17:57, Maurizio Colucci wrote:
> > Luciano Montanaro wrote:
> > >El Miércoles 20 Octubre 2004 17:25, Maurizio Colucci escribió:
> > >>Hello,
> > >>
> > >>I am looking for a way to send a close signal to a window of which I
> > >>know the WId.
> > >>
> > >>The obvious way would be KWin::closeWindow(Wid), but there is no such
> > >>method.
> > >>
> > >>I found NetRootInfo::closeWindowRequest
> > >><http://developer.kde.org/documentation/library/3.3-api/kdecore/html/
> > >>clas sNETRootInfo.html#a48> (Window window), but it is not static. Am
> > >> I supposed to instantiate a class? How?
> > >>
> > >>Could someone please shed some light on this? :-)
>
>  See Task::close() in kdebase/kicker/taskmanager/taskmanager.cpp .
>
> > >A window is a widget (or, maybe, a widget is a window).
> > >So you should QWidget::find(winId)->close() it.
> > >
> > >Ciao,
> > >Luciano
> >
> > Hi Luciano. Thanks a lot for the quick reply. Unfortunately I tried,
> > and it does not work. I tried closing a konsole window and
> > QWidget::find returned 0.  Furthermore, I need to close windows that
> > may not be qt windows.
>
>  QWidget::find() and QWidget::close() work only in-process.

Yes, I misunderstood the problem.

Luciano
-- 
Luciano Montanaro 

Any sufficiently advanced technology is indistinguishable from a yo-yo
                                                            - Enoch Root
 
>> 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