[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Closing windows?
From: Maurizio Colucci <seguso.forever () tin ! it>
Date: 2004-10-20 15:57:00
Message-ID: 41768ACC.5090406 () tin ! it
[Download RAW message or body]
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? :-)
>>
>>
>>
>
>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.
Bad, bad news! :-)
Mau
>> 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