Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Displaying bool values as "boxes" in a QChart
Forum Updated to NodeBB v4.3 + New Features

Displaying bool values as "boxes" in a QChart

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 182 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.
  • S Offline
    S Offline
    swurl
    wrote on last edited by
    #1

    I'm looking to be able to display a bool value as a box on a chart, i.e. red for false, green for true. I've thought of using a QAreaSeries, but this would look kinda bad so I decided against it.

    Here's an example of what I'm looking for (from a non-Qt application):

    c8883951-e70b-4ca2-9169-c68c71c4fbad_acd6e64f0a51eeda40b216c889824267a411681f.png

    1 Reply Last reply
    0
    • A.A.SEZENA Offline
      A.A.SEZENA Offline
      A.A.SEZEN
      wrote on last edited by
      #2

      QScatterSeries might be what you're looking for.
      https://doc.qt.io/qt-6/qscatterseries.html

      1 Reply Last reply
      1
      • S swurl has marked this topic as solved on

      • Login

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