Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create a rule that series colors do not overlap
Qt 6.11 is out! See what's new in the release blog

Create a rule that series colors do not overlap

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

    If the basic color of the line series is used, the color values may be duplicated.

    Is there any way to prevent the color values from being duplicated? A lot of data might come in. I want each of them to have their own color.

    I have a color value with qlist<qstring> and try to check for duplicates using contain. But I don't know how to set the rules for color values.

    JonBJ 1 Reply Last reply
    0
    • I IknowQT

      If the basic color of the line series is used, the color values may be duplicated.

      Is there any way to prevent the color values from being duplicated? A lot of data might come in. I want each of them to have their own color.

      I have a color value with qlist<qstring> and try to check for duplicates using contain. But I don't know how to set the rules for color values.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @IknowQT
      What "line series"? Should I guess QLineSeries on a Qt chart? Since there is a QXYSeries::setColor(const QColor &color) method you can specify a specific color for each series.

      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