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. How to create custom QLineSeries class and modify content of QLegend in QtCharts?
Forum Updated to NodeBB v4.3 + New Features

How to create custom QLineSeries class and modify content of QLegend in QtCharts?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 839 Views 2 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.
  • T Offline
    T Offline
    tuhao
    wrote on last edited by
    #1
    1. I need to split a QLineSeries in multiple sections that not connect together, each section with a different color. How to create a custon QLineSeries?
    2. I create multiple QLineSeries in chart, but I don't want some of them to show in the legend, it seems no way to make them disapear in the legend.
    FlotisableF 1 Reply Last reply
    0
    • T tuhao
      1. I need to split a QLineSeries in multiple sections that not connect together, each section with a different color. How to create a custon QLineSeries?
      2. I create multiple QLineSeries in chart, but I don't want some of them to show in the legend, it seems no way to make them disapear in the legend.
      FlotisableF Offline
      FlotisableF Offline
      Flotisable
      wrote on last edited by
      #2

      @tuhao

      1. I don't know how to create a custom QLineSeries, but maybe use a class to handle many QLineSeries is a choice.
      2. I have tried using QLegend, it may meet your need, set up the corresponding QLegendMarker can make the legend dissapear.
        read QChart::legend, QLegend and QLegendMarker for more information
      T 1 Reply Last reply
      0
      • FlotisableF Flotisable

        @tuhao

        1. I don't know how to create a custom QLineSeries, but maybe use a class to handle many QLineSeries is a choice.
        2. I have tried using QLegend, it may meet your need, set up the corresponding QLegendMarker can make the legend dissapear.
          read QChart::legend, QLegend and QLegendMarker for more information
        T Offline
        T Offline
        tuhao
        wrote on last edited by
        #3

        @Flotisable thank you, I'll have a try

        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