[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: QWidgetList QApplication::topLevelWidgets () ?
- From: Michael Ekstrand <mekstran scl ameslab gov>
- To: Carlos Savoretti <csavoretti clubsanjorge com ar>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: QWidgetList QApplication::topLevelWidgets () ?
- Date: Tue, 20 Mar 2007 13:03:14 -0500
On Tue, 2007-03-20 at 10:10 -0300, Carlos Savoretti wrote:
> A simple question... Is there any function
> equivalent to topLevelWidgets in gtk ?
>
> Or some way to emulate it ?
>
> I need it in order to iterate thru all the
> instances of a certain class created by an
> app.
I'm not sure if there's a direct way, but it shouldn't be difficult to
track all instances you create in a GList somewhere. Then just hook in
to the objects' destroy signals to remove them from the list.
- Michael
--
Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:
http://www.scl.ameslab.gov/Projects/Monitor/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]