PDA

View Full Version : Qml documents is a JavaScript pure too?



joaovictor
11th March 2017, 21:12
I want to know if I can make a ".qml" file a pure javascript text or the only accepted encoding structure in .qml is that of qmake itself?


Because I need to edit the project modules on my phone as well, however the only editor / compiler is QML Creator (on my Android) which edits all .qml but does not yet have the option to create purely "js" files. In fact I still have to figure out how to insert the images in the ".qml" via this fantastic app!

anda_skoa
12th March 2017, 12:03
I have no idea what you are asking for.

The text editor of QtCreator is of course capable of handling "js" files, as those are just text files with a "js" extension.

I also don't see how qmake is in any way relevant for the contents of a QML file.

Do display images in QtQuick use the Image (http://doc.qt.io/qt-5/qml-qtquick-image.html) element.

Cheers,
_