09-12-2012 08:58 AM
I have a very simple question.
Is there any way to know when a Page and/or CustomControl is becomining visible/invisible to the user.
For instance, when I create a TabbedPane, I create all the Pages for all the Tabs. What I would like to know is if it exists a way to know, when the user has selected a Tab, that the Page associated with the Tab is becoming visible.
Of course, I could track the Tab event and then try to figure out what screen should have become visible to the user. However I would like to know if there is some signal or something emited by the Page/CustomControl itself to track the visibility.
09-12-2012 02:56 PM
Not sure if this is exactly what you are looking for but some of the signals associated with visual node, especially onVisibleChanged signal might be worth playing around with.
Please let us know if this works for you
09-13-2012 06:15 AM
Thank you, this isn't exactly what I was looking for.
Indeed, I think this is used for instance for sheets that you will set as visible or not.
Here, I just switch tabs and when I press a tab, the Page displayed doesn't send the signal "visibleChanged".
Just to let you know, this is how I tried :
In my case, I have a CustomControl class that I use to set the content of a Page.
so I connect the signal with my slot like this :
connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(visibilityDidChange(bool)));
When I select a Tab and my page becomes visible, my slot isn't called.
03-27-2013 02:57 PM
this would be a really great feature to have.. it would let you load images in scrollers only as they become visible as well. Anyone found a hidden signal or work around?