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. QtQUICK 2.0 vs C++ Widget
Forum Updated to NodeBB v4.3 + New Features

QtQUICK 2.0 vs C++ Widget

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    alexey123_45
    wrote on last edited by
    #1

    I have a problem: I want to make a GUI interface to QUICK 2.0. I want to make C + + component that displays a graph and embed it in QUICK 2.0.
    how to make such a component?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      Just make a subclass of QQuickPaintedItem and draw your graph in the paint method, just as you would in a normal widget. Then expose it to qml by registring the type. There should be several examples of this. Alternatively you can draw the graph using Canvas + javascript itself.

      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