Signals and functions question



Hello,
 
I have some questions about signals and functions.
When a certain event occurs on a widget, a function is called with the widget-pointer, and a data pointer. But isn't this sometimes a bit difficult?
 
Example:
a button widget is pressed, then i want to read integer data from a spinner, and set the status widget to a text.
Does this mean i have to make an array with 2 pointers in it, and give that as the data pointer?
 
Or should i declare the button, spinner and status widget als local variable? (on top of the file) That way i won't use the pointers i give with the function, but it's easier to program.
 
What's the best way to do this?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]