Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQUICK 2.0 vs C++ Widget
Qt 6.12 LTS is out! See what's new in the release blog

QtQUICK 2.0 vs C++ Widget

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.3k 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.
  • ? Offline
    ? Offline
    A Former User
    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
      • Unsolved