Re: QWidgetList QApplication::topLevelWidgets () ?
- From: Michael L Torrie <torriem chem byu edu>
- To: Carlos Savoretti <csavoretti clubsanjorge com ar>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: QWidgetList QApplication::topLevelWidgets () ?
- Date: Tue, 20 Mar 2007 12:21:13 -0600
On Tue, 2007-03-20 at 10:10 -0300, Carlos Savoretti wrote:
Hi all!
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.
If you have a pointer to a widget, you can iterate up the containers to
the parent. I used to do this with glade-generated code all the time.
Glade would also add arbitrary data to a widget (a string) that you
could then search for, once you had found the parent. You can iterate
up the widget hierarchy by calling gtk_widget_get_parent until you get a
NULL.
Michael
Thanks.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]