[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-20 15:27:28
Message-ID: 200410201727.29296.mikelima () cirulla ! net
[Download RAW message or body]

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? :-)
>

A window is a widget (or, maybe, a widget is a window).
So you should QWidget::find(winId)->close() it.

Ciao,
Luciano

> (Also, a class containing informations about windows doesn't seem a good
> place to put such a method closeWindow(Window). Why such an obscure
> design choice?)
>
> Thanks a lot for any info,
>
> -------
> Maurizio Colucci
> http://onefinger.sf.net
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<


-- 
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