Results 1 to 2 of 2

Thread: Two separate QwtLegend objects in one QwtPlot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Two separate QwtLegend objects in one QwtPlot

    Hello all,

    I'm new to programming with Qwt in C++. I have a plot with some curves and markers in it. Currently, I have one QwtLegend for the curves and markers, however, I want to have two separate QwtLegends, one for the curves and one for the markers. Is this possible? If yes, how can I do that?

    What I would also be satisfied with would be to have one QwtLegend with curves and markers in separate rows. I have found the function QwtLegend::setMaxColumns(uint columns), but unfortunately, the legend shows more than three items in one row. My code for that looks as follows:

    QwtLegend *legend = new QwtLegend();
    plot->insertLegend(legend, QwtPlot::TopLegend, 1.0);

    What am I doing wrong?

    Thank you very much in advance.
    Last edited by javiator; 8th December 2014 at 09:38.

Similar Threads

  1. Aligning QwtLegend to QwtPlot
    By bisasatan in forum Qwt
    Replies: 3
    Last Post: 15th May 2013, 12:51
  2. QwtLegend orientation on QwtPlot
    By bday1223 in forum Qwt
    Replies: 1
    Last Post: 27th September 2011, 06:26
  3. Replies: 10
    Last Post: 18th September 2008, 15:14
  4. Replies: 1
    Last Post: 9th February 2008, 12:46
  5. Replies: 7
    Last Post: 18th July 2006, 21:33

Tags for this Thread


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.