Results 1 to 5 of 5

Thread: QwtPlotLegend only uses one column

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPlotLegend only uses one column

    Check the bode example and replace QwtPlot::BottomLegend by QwtPlot::TopLegend.

    If this is what you are looking for check your code and remove everything you did, what has to do with the legend - beside the line you find in the example.

    Uwe

  2. #2
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    1

    Default Re: QwtPlotLegend only uses one column

    Got it! The problem was another piece of code that also inserted a legend. So even though in the constructor I had the correct code, the class constructing my plot called

    Qt Code:
    1. new_plot->insertLegend(new QwtLegend());
    To copy to clipboard, switch view to plain text mode 

    I'm still not sure how I got items in a single column in the top legend.

Similar Threads

  1. Replies: 3
    Last Post: 5th May 2011, 14:03
  2. Get Column Name from a QSqlQueryModel
    By sgmurphy19 in forum Qt Programming
    Replies: 3
    Last Post: 14th November 2007, 23:20
  3. Column with numbers
    By ederbs in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 22:03
  4. Column Sorting
    By sumsin in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 07:48
  5. Column Colour
    By sumsin in forum Qt Programming
    Replies: 8
    Last Post: 15th June 2006, 10:38

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
  •  
Qt is a trademark of The Qt Company.