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. Efficient way to draw 2D complicated shape in Qt QML?
Forum Updated to NodeBB v4.3 + New Features

Efficient way to draw 2D complicated shape in Qt QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 646 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.
  • R Offline
    R Offline
    Roget.P
    wrote on last edited by
    #1

    Hello,
    I know Qt has some API to generate shape by coding in Qml, but I find it to slow and hard to draw a complicated shape.
    Do we have a tool to generate code? Like Blend for Visual Studio can generate xaml for WPF or Lunacy.
    Thanks.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Roget.P
      wrote on last edited by
      #2

      come on, somebody must know something

      1 Reply Last reply
      0
      • jeremy_kJ Offline
        jeremy_kJ Offline
        jeremy_k
        wrote on last edited by
        #3

        What have you tried? In what way is it slow and hard?
        Is the shape definition available during build time?

        Asking a question about code? http://eel.is/iso-c++/testcase/

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Asperamanca
          wrote on last edited by
          #4

          SVG might be something to try. svgtoqml might be a way if your runtime performance with using SVG directly isn't good enough.
          https://www.qt.io/blog/vector-graphics-in-qt-6.8

          R 1 Reply Last reply
          1
          • A Asperamanca

            SVG might be something to try. svgtoqml might be a way if your runtime performance with using SVG directly isn't good enough.
            https://www.qt.io/blog/vector-graphics-in-qt-6.8

            R Offline
            R Offline
            Roget.P
            wrote on last edited by
            #5

            @Asperamanca Sorry for late response, and thanks for your answer, it's helpful, I will try that!

            1 Reply Last reply
            0

            • Login

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