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 823 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 30 Mar 2017, 17:36 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.
    F 1 Reply Last reply 31 Mar 2017, 03:56
    0
    • T tuhao
      30 Mar 2017, 17:36
      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.
      F Offline
      F Offline
      Flotisable
      wrote on 31 Mar 2017, 03:56 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 31 Mar 2017, 04:54
      0
      • F Flotisable
        31 Mar 2017, 03:56

        @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 31 Mar 2017, 04:54 last edited by
        #3

        @Flotisable thank you, I'll have a try

        1 Reply Last reply
        0

        1/3

        30 Mar 2017, 17:36

        • Login

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