View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#54
Originally Posted by helex View Post
I tried in the meantime to load the remotes dynamically instead of statically like proposed by marxian. But I have a problem to call the needed function to load the remotes within the already dynamically created list of remotes.
I have so far no solution for this and was a little bit confused and frustrated by my own code so I continued while DreamRemote was in the QA pipeline in the meantime a different project.
So, a small status update before I went to bed. I got the dynamically loading of the remotes working. At least for two, the rest is finetuning.

It was in the end very simple. I just call the function to load the remotes with this simple line of code:
Code:
Component.onCompleted: loadRemotes();
Before I wanted to call the function from within my C++ source and access all items in the ListView to control myself if a reload is needed after the settings are changed. But I was unable to get this working for more than a single remote. I had at no point access to all qml items in the remotelist. This only just in case someone wants to create something similar and is also unable to get it working.

Regarding the startup Time this new function had not the anticipated effect. The startup of DreamRemote is now only about 1 second faster. I hoped for more. But the User Interface feels now a lot faster and more fluent. Now I will be able to add more features without fear.

So, stay tuned.
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.
 

The Following User Says Thank You to helex For This Useful Post: