Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get a button from a gridLayout

If I have elements inside my gridLayout, can I get the reference to that object, if yes, which function do I need to use? Is it good idea to perform some actions on the objects inside gridLayout? Or there is another better language idiom?

like image 291
rookie Avatar asked Jul 26 '26 12:07

rookie


1 Answers

No you cannot get references to items from a layout. However, you can from the container that holds the button. A better solution might be to hold a reference to the button at a higher level of scope in order to be able to access it later.

like image 125
jzd Avatar answered Jul 28 '26 02:07

jzd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!