Re: [Interest] Loader refresh

2015-09-14 Thread Bo Thorsen
If it's just about language changes, it's pretty easy to fix. Just add a function that updates the string on each text item. Exactly like a ui_xx.h file does it. One hack I've seen but never tried is to have a c++ object that has a string property. The property is actually always empty, but on

Re: [Interest] Loader refresh

2015-09-14 Thread m...@rpzdesign.com
Bo: Thanks for the response. The only other areas that I can see needing a screen refresh are ListView and Image (Imageprovider) The Text QML object was shared as one example of "changing" after the loader is when you swap out the language from English to Chinese to Arabic. I think this is wh

Re: [Interest] Loader refresh

2015-09-14 Thread Bo Thorsen
Hi md, I don't know what it is you see, you just say it flickers. We use a lot of Loader objects for customer code, and that doesn't flicker. The only guess I have on how this could happen is if you have lots of bindings that keep propagating through the system. For example, you mentioned a Te

Re: [Interest] Loader refresh

2015-09-11 Thread m...@rpzdesign.com
Ok: Someone must have come across this problem before. Loader->sourceComponent is too heavy and causes screen flicker. QMetaObject::invokeMethod(gobj,"doLayout",Qt::QueuedConnection) does not work on QQuickText class objects. Hopefully someone has already skinned this cat. Cheers, md On 9/1

Re: [Interest] Loader refresh

2015-09-11 Thread m...@rpzdesign.com
Listers: I was able to loop through the children recursively and find that the "QQuickText" Classnames were the candidates to try to execute: QMetaObject::invokemethod(gobj,"doLayout",Qt::QueuedConnection); But it had no effect on the currently displayed text. That has to be some less intrusiv

[Interest] Loader refresh

2015-09-11 Thread m...@rpzdesign.com
Hello List: Anybody have ideas on how to cause a QML refresh to repaint a QML Window or component. I tried setting the sourceComponent value of Loader but it causes a good amount of screen flicker and has some of optimizations so it will not reload the same component 2 times in a row, as if th