Find Components with function...

Reinaldo Nolasco Sanches r_linux at yahoo.com
Thu Jul 18 15:10:51 BST 2002


I create an aplication with one per type component declared as pointer...

ex:

   QCheckBox *checkBox;
   QPushButton *pushButton;

Into archive .cpp I use this components as...

   pushButton = new QPushButton( "Text1", this, "name1" );
   pushButton = new QPushButton( "Text2", this, "name2" );

How I do to call the button with name "name1" in other part of my code ???

It is possible... or I have declarate...

   QPushButton *firstButton;
   QPushButton *secondButton;

Making bad .h archive...

Thanks for any askies...


   

=====
"When you know Slackware, you know Linux... when you know Red Hat, all you know is Red hat"

- Anyone seen smoking will be assumed to be on fire and will be summarily put out.
- Power doesn't corrupt people, people corrupt power.

- r_linux at yahoo.com -- http://slackware.linuxbr.org
- UIN: 42853394 - irc.brasnet.org(#slackware)

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list