What happens with the connections when I hide a widget?
Hi all, I want to know what happens with the connections of a widget when I hide it: If the signal arrives when the widget is hidden, the slot connected to this signal is executed? or maybe the widget (or the application) put it in a queue of slots to execute them when the widget is shown again? or simply it discards the signal? I think that the slot is executed but I want to know it exactly.
Thanks.
Re: What happens with the connections when I hide a widget?
The slot will be executed.
Re: What happens with the connections when I hide a widget?
Quote:
Originally Posted by Dark_Tower
Hi all, I want to know what happens with the connections of a widget when I hide it: If the signal arrives when the widget is hidden, the slot connected to this signal is executed?
Yes, the slot gets executed. Remember, that signals are QObject oriented, not QWidget oriented, so they don't "see" the target (unless a particular slot checks if the widget is hidden, but still the slot gets executed, just does nothing).
Re: What happens with the connections when I hide a widget?
Thanks both, now I've got it clear :)