nephros | Miikasd: Does it have to connect to something in FirstPage? If you have your properties defined in ApplicationWindow, you can access them from Cover more easily. | 06:41 |
---|---|---|
nephros | If you need to access something from *any* page, one other option is making a QML Singleton. | 06:42 |
Miikasd | nephros: Yes, I tried to connect to signal which was defined and emitted in the FirstPage, but I was not able to do it the CoverPage | 07:08 |
Miikasd | Later I tried to define it in the appwindow, then the connection worked in FirstPage, but not in CoverPage | 07:09 |
Miikasd | I look into the QML Singleton, if I can't get the signal process to work, thanks for the info :) | 07:10 |
nephros | Miikasd: If you receive the signal in FirstPage, just store its information in a property in App window, and in cover, have an Connections { target: app; onPropertyFooChanged: {} } which reacts on the app property. NOTE: in the Connections component, you can use *either* onFooChanged: *or* function fooChanged() but not mix them. | 08:17 |
Miikasd | nephros: Thanks, I will try this. I'll make some kind of "Minimal NOT working example", if I cant still figure it out. | 08:21 |
*** amccarthy is now known as Guest15037 | 13:38 | |
*** amccarthy_ is now known as amccarthy | 13:38 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!