View Single Post
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#328
Originally Posted by BluesLee View Post
Works perfectly! Nice shark indication of activity the way.
"muh first app"!

Did you have to change any permissions?

Only thing that's bugging me about it is that if you toggle the flashlight from the cover action it won't update the icon when you open the main page and vice versa.

On "traditional" Qt I'd do this with signals and slots but it's taking a while to get my head around Qml and the docs aren't great either compared to normal Qt, which is understandable.

The best I could do for now is to use onStatusChanged on the main page (see here), but that only works when switching between pages within the app (try main page to about and back, and it will refresh); it doesn't work when switching between the cover and the app itself.

Are there any signals for when different pages gain focus or anything like that?
 

The Following 3 Users Say Thank You to Feathers McGraw For This Useful Post: