Exporting QML from Sketch
-
Re: Exporting QML from SketchApp
I found this old topic and was excited to find it existed. I'm happy someone has made a plugin to create QML out of Sketch files.
However, I can't get it to work as expected. I installed the SketchQML plugin from GitHub as instructed, it appears to install fine, but when I use "Export QML" or Export UI Form", it gives me this error:
- Exception Error. TypeError: style._object.fill is not a function. (In 'style._object.fill()', 'style._object.fill' is undefined)
So I downloaded the demo example file "Ubuntu Touch GUI Sketch" from SketchAppSources, and I get a very similar error (the only difference is the missing "_object.":
- Exception Error. TypeError: style._object.fill is not a function. (In 'style._object.fill()', 'style._object.fill' is undefined)
I'd really like to be able to convert my Sketch file to QML, but I'm worried the plugin is old and not compatible with the current version of Sketch.
Please advise.
-
Hello, the plugin is no longer working with the new version of Sketch. Unfortunately, I don't have time and a license of new Sketch to fix the issue...
-
There is now an official Sketch Bridge plugin as part of the Commercial Version of Qt Design Studio - https://blog.qt.io/blog/2019/05/17/qt-design-studio-1-2-beta-released/