[Interest] automatic UI updates as the result of QML file modifications

Alexander Ivash elderorb at gmail.com
Sat Jan 25 10:04:11 CET 2014


>> Yes.  I’ve done this.  I have a realtime coding environment in which the
running app will reload and redraw qml on file change.  It’s relatively
easy to setup.  I’ve even set it up so that it’ll draw iPad and iPhone
sized windows next to a reduced desktop window on my mac desktop machine.

That's really cool! But how do you reload not root QML files?

p.s. I think having such functionality in Qt out-of-box would be a killer
feature.


2014/1/25 Joshua Kolden <joshua at crackcreative.com>

> Yes.  I’ve done this.  I have a realtime coding environment in which the
> running app will reload and redraw qml on file change.  It’s relatively
> easy to setup.  I’ve even set it up so that it’ll draw iPad and iPhone
> sized windows next to a reduced desktop window on my mac desktop machine.
>
> The basics are that I use a QFileSystemWatcher to notice a qml file change
> and signal to reload the qml.  The only extra step is to call
> clearComponentCache() on the qml engine each time before reloading the qml.
>
> javascript files also need to be updated in my case because I’m using
> coffeescript, so there is a compile step required before loading.  For this
> I use “guard” (ruby file watcher gem, but you could use anything).  It
> watches for any changes to the caffescript files, and runs make to build
> the js.
>
> I do all my development in ram disk, so the combined effect is a
> completely interactive real time text driven design interface.  I really
> recommend it.
>
>
> On Jan 24, 2014, at 9:57 AM, Alexander Ivash <elderorb at gmail.com> wrote:
>
> > Did anybody implement such functionality? Is is possible at all? Having
> this would be extremely helpful for fine-tuning UI.
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140125/8a0923df/attachment.html>


More information about the Interest mailing list