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. Adding a vertical line to QtChart displaying a QLineSeries
Forum Updated to NodeBB v4.3 + New Features

Adding a vertical line to QtChart displaying a QLineSeries

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

    I have a QtChart based plot where I am displaying a QLineSeries plot. I am looking for a solution to add a full vertical scale vertical lines to the graph. (Sort of vertical markers.) I am filling the QLineseries from a "ringbuffer" so at every iteration I will need to move those vertical lines too.

    So far my best idea was adding a separate QLineSeries for each line with two points with separate y but same x coordinates.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      hi
      you can draw a line by two points that x1 - x2 is very low that looks like a vertical line

      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