Results 1 to 3 of 3

Thread: Legend icon not scaled with renderLegend

Threaded View

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

    Default Legend icon not scaled with renderLegend

    Hi,
    I am rendering a QwtPlot on a pixmap using QwtPlotRenderer and a painter with painter.scale(8,8).
    The whole plot is scaled correctly including the line on the plot and the legend text, but the legend line/icon is not scaled up.
    The QwtPlotCurve pen is set to a width of 3.
    Qt Code:
    1. const int scale = 8;
    2. QPixmap pixmap(width*scale, height*scale);
    3. QPainter painter(&pixmap);
    4. painter.scale(scale,scale);
    5. QRect rect(0,0,width,height);
    6. QwtPlotRenderer rend;
    7. rend.render(plot, &painter, rect);
    8. pixmap.save("pixmap.png");
    To copy to clipboard, switch view to plain text mode 
    I am using Qwt-6.1.0.
    /Claus
    Attached Images Attached Images

Similar Threads

  1. Replies: 1
    Last Post: 26th May 2015, 07:34
  2. QWT 6.1 Customizing Legend Labels and Icon Position
    By BagpipesJohnson in forum Qwt
    Replies: 3
    Last Post: 14th November 2014, 16:20
  3. Increase legend icon size?
    By torrentss in forum Qwt
    Replies: 2
    Last Post: 1st September 2010, 12:26
  4. How to get Scaled size
    By rogerholmes in forum Newbie
    Replies: 3
    Last Post: 20th March 2010, 16:12
  5. Font is scaled
    By lni in forum Qt Programming
    Replies: 11
    Last Post: 30th January 2009, 21:54

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.