We have moved to a new Sailfish OS Forum. Please start new discussions there.

SDK: add QML live coding / QML only deploy [answered]

asked 2014-01-24 22:11:16 +0300

AlphaX2 gravatar image

It would be a great feature if the SDK supports QML live coding or QML only deploy.

In fact QML files just some text files and could be modified very easy, even on the device itself. So it would be a great feature, if you could see changes in your QML without full build and deploy process. Instead change some details and see the feature directly on your device, or a less cool, be also helpful way: deploy only QML and start the app again. This would be just some copy&paste to the QML folders and would take not as much time as compiling the whole application again.

This feature would help in cases where you work on a very detailed / rich of features application.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Spam Hunter
close date 2020-02-27 12:13:17.411254



Also if you use PyOtherSide, you can always do it like this as you don't need to compile anything. :)

I'm basically already doing this - I have a script on the device that rsyncs the source from my PC and runs it with qmlscene. All in all takes a split second from tarting the script and the app starting on the device. :)

MartinK ( 2014-01-25 03:22:27 +0300 )edit

The N9/Harmattan SDK had the feature to live update a QML file in debug mode, on the actual device. Also, it had a simulator which could restart within 3 seconds with updated code. It was impressive. SailfishOS SDK is still alpha, but I sure hope it will get these features too.

Fuzzillogic ( 2014-01-25 21:48:36 +0300 )edit

In addition to qmlscene, you can run sailfish-qml $APPNAME which will launch /usr/share/$APPNAME/qml/$APPNAME.qml. This is useful for e.g. .desktop files.

Behold ( 2014-01-25 22:30:35 +0300 )edit

5 Answers

Sort by » oldest newest most voted

answered 2014-01-25 22:25:25 +0300

coderus gravatar image

when i'm developing QML part i'm mounting phone partition via sshfs. no need to deploy anything. then just copying qml files back to project and building package for final tests :)

edit flag offensive delete publish link more



Sure I never said, that you can't do something like that. But I think it's very convinient if the SDK is doing it for you. And due to the fact, it is not so hard to, it should be easy to implement.

AlphaX2 ( 2014-01-25 22:28:47 +0300 )edit

of course. i didnt meant your wish shouldn't been live :) i'm not using Qt Creator building for the moment, but remember it had rsync method for emulator. Something similar can be done for real device too. If same version already installed on device no need to rebuild package, just rsync all/modified files :)

coderus ( 2014-01-25 22:32:49 +0300 )edit

answered 2017-02-09 14:51:16 +0300

updated 2017-02-09 14:51:59 +0300

Something like this seems to be released with 2.1.0 Iijoki: https://together.jolla.com/question/153631/release-notes-210iijoki/#153631-sdk

I haven't had a chance to test it yet.

edit flag offensive delete publish link more

answered 2017-02-09 15:20:58 +0300

Jare gravatar image

The live coding functionality is now available in the 1701 SDK release :)

edit flag offensive delete publish link more

answered 2016-07-01 15:52:39 +0300

martyone gravatar image

It is possible to do something similar to the "QML only deploy" even with the current SDK:

  1. select "Deploy by Copying Binaries" as the deployment method
  2. disable the "qmake" and "make" build steps in build settings (a button will appear on hover)

With this it takes no longer than 3 secs to deploy and run a test app in emulator on my laptop

edit flag offensive delete publish link more

answered 2015-03-11 12:52:35 +0300

ElderOrb gravatar image

Have you seen this https://github.com/sletta/dqml ? While this is not fully complete / integrated with SDK solution, this is good starting point.

edit flag offensive delete publish link more

Question tools



Asked: 2014-01-24 22:11:16 +0300

Seen: 1,075 times

Last updated: Feb 09 '17