View Single Post
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#329
Originally Posted by Feathers McGraw View Post
"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?
No, i did not change any permissions. You are right regarding toggling and the behaviour between main page and cover.
 

The Following 2 Users Say Thank You to BluesLee For This Useful Post: