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. Graph in qml
Qt 6.11 is out! See what's new in the release blog

Graph in qml

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.2k Views 1 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.
  • J Offline
    J Offline
    Julie1986
    wrote on last edited by
    #1

    I woudl like to create a graph in qml. Any idea on how to proceed. LIke a graph having two axis and the values of the graph and curve is done in run time. Thanks..

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use QML Canvas API, or look on the net for ready-made QML graph components (I think there are some experimental ones available).

      (Z(:^

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Julie1986
        wrote on last edited by
        #3

        I found one but dont know how to use it. import "canvas" does not work. if you have some links kindly post it. Thanks.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I don't.

          QML Canvas is part of Qt Quick 2, so you need to have Qt5 installed. Here is it's documentation: "LINK":http://doc-snapshot.qt-project.org/5.0/qtquick-qmltypereference.html#canvas-similar-to-html5-canvas.

          (Z(:^

          1 Reply Last reply
          0
          • C Offline
            C Offline
            chriadam
            wrote on last edited by
            #5

            See the "StocQt":http://qt.gitorious.org/qt/qtdeclarative/trees/master/examples/demos/stocqt demo for an example of drawing graphs with the Canvas element.

            Cheers,
            Chris.

            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