Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Exporting QML from Sketch
Forum Updated to NodeBB v4.3 + New Features

Exporting QML from Sketch

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 4 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    burShigi
    wrote on last edited by
    #1

    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)

    0_1557867149195_error-from-SketchQML-plugin-2019-05-14-my-file.png

    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)

    0_1557867192831_error-from-SketchQML-plugin-2019-05-14-your-demo-file.png

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      @benlau might be able to help.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        @benlau might be able to help.

        B Offline
        B Offline
        burShigi
        wrote on last edited by
        #3

        @SGaist Hi and thanks for recommending @benlau

        1 Reply Last reply
        0
        • benlauB Offline
          benlauB Offline
          benlau
          Qt Champions 2016
          wrote on last edited by
          #4

          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...

          1 Reply Last reply
          3
          • B Offline
            B Offline
            BrookCronin
            wrote on last edited by
            #5

            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/

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved