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. Add more information to the chart
Qt 6.11 is out! See what's new in the release blog

Add more information to the chart

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 279 Views
  • 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.
  • C Offline
    C Offline
    ChiaoHuang
    wrote on last edited by ChiaoHuang
    #1

    Hi ,

    I tried the box-and-whiskers chart example and it is working.
    I'd like to add more information to box-and-whiskers chart.
    Like
    alt text

    How to implement it if possible.

    Thanks,

    JoeCFDJ 1 Reply Last reply
    0
    • C ChiaoHuang

      Hi ,

      I tried the box-and-whiskers chart example and it is working.
      I'd like to add more information to box-and-whiskers chart.
      Like
      alt text

      How to implement it if possible.

      Thanks,

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @ChiaoHuang

      // Create a QGraphicsTextItem for the text
      QGraphicsTextItem* textItem = new QGraphicsTextItem("Max Value");
      textItem->setPos(2, 18); // Set the position of the text

      // Add the text item to the chart
      chart->scene()->addItem(textItem);

      Customize the text appearance if desired:

      // Set the font size and color of the text item
      QFont font = textItem->font();
      font.setPointSize(12);
      textItem->setFont(font);
      textItem->setDefaultTextColor(Qt::red);

      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