Results 1 to 3 of 3

Thread: Problem rendering custom QwtPlotLegendItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem rendering custom QwtPlotLegendItem

    Thank you Uwe,

    Here is the modified code in LegendItem class:
    Qt Code:
    1. virtual QRect geometry( const QRectF &canvasRect ) const
    2. {
    3. QRect rect = QwtPlotLegendItem::geometry( canvasRect );
    4. rect.moveTopLeft( m_pos + canvasRect.topLeft().toPoint());
    5. return rect;
    6. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by LoranM; 13th September 2013 at 13:46. Reason: updated contents

Similar Threads

  1. A suggestion about QwtPlotLegendItem
    By Nicho in forum Qwt
    Replies: 4
    Last Post: 7th April 2015, 12:06
  2. QwtPlotLegendItem and QwtLegendItem
    By jesse_mark in forum Qwt
    Replies: 3
    Last Post: 14th November 2012, 07:10
  3. Replies: 8
    Last Post: 7th November 2012, 19:20
  4. Replies: 2
    Last Post: 30th July 2009, 04:58
  5. Rendering problem
    By boss_bhat in forum Qt Programming
    Replies: 1
    Last Post: 20th June 2006, 08:48

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.