Results 1 to 1 of 1

Thread: QwtPlotLegendItem with bar chart

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QwtPlotLegendItem with bar chart

    Hello!

    I would like to add a QwtPlotLegendItem in a bar graph (one that uses QwtPlotMultiBarChart), but I couldn't find a way to do it apart from the simple creating and attaching it (used almost the same code that is in the Legends example). I tried it with a normal scope graph (QwtPlot with some QwtPlotCurves) and it worked, but nothing happens when I attach the same legend in a QwtPlot with QwtPlotMultiBarChart, nor could I find any method in the assistant files that would both make the legend appear as well as show the appropriate data.

    So how to do it? :x

    Thanks,

    Momergil


    Edit: Actually I noticed that the QwtPlotLegendItem is being drawn: as a two-pixel white point in the graph \o/

    Edit2: Solved: I forgot to set the item's names
    Last edited by Momergil; 18th June 2014 at 21:40.
    May the Lord be with you. Always.

Similar Threads

  1. A suggestion about QwtPlotLegendItem
    By Nicho in forum Qwt
    Replies: 4
    Last Post: 7th April 2015, 13:06
  2. Replies: 2
    Last Post: 13th September 2013, 13:47
  3. QwtPlotLegendItem and QwtLegendItem
    By jesse_mark in forum Qwt
    Replies: 3
    Last Post: 14th November 2012, 08:10
  4. how much about kd chart
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 10:54

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.