Results 1 to 2 of 2

Thread: QChartView and QScatterSeries overrdide the label of a QPointF

  1. #1
    Join Date
    Feb 2012
    Posts
    9
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QChartView and QScatterSeries overrdide the label of a QPointF

    Hello everyone

    I have QChartView which displays some 2D points which are representing each one a specific project I want to label each point with the project name AND NOT with it's x,y coordinates as the default behaviour

    Screenshot from 2018-08-15 13-20-17.jpg

    Is there any way to achieve override the function that creates or render the labels?

    Thanks in advance

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    3,928
    Thanks
    229
    Thanked 615 Times in 605 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QChartView and QScatterSeries overrdide the label of a QPointF

    Is there any way to achieve override the function that creates or render the labels?
    No. The Qt Charts library is rigid and completely non-customizable. You get what you get, and if you don't like it, too bad. There are no virtual functions you can override, no way to add a new series type, no way to add a new chart type, no way to do anything that doesn't come out of the box.

    You should take a look at QCustomPlot or Qwt if you want a plotting library with more flexibility.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Save QChartView as PNG
    By Carlsberg in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2017, 17:44
  2. adding new QChart in a QChartView
    By zemlemer in forum Newbie
    Replies: 0
    Last Post: 24th April 2017, 20:58
  3. Problem getting QChartView to display
    By derrickbj in forum Qt Programming
    Replies: 5
    Last Post: 20th September 2016, 17:55
  4. QPointF == operator usage
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2010, 09:41
  5. QPointF transformation
    By dreamer in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2008, 11:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.