Results 1 to 10 of 10

Thread: QWtPlot: Workaround for insertLegend bug?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Dec 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWtPlot: Workaround for insertLegend bug?

    As I said there's no need more code - QwtPlot is create by Designer and in parent constructor ( after setupUI ) I call new legend, insertLegend
    call updateLayout() in this place replot or similiar is without effect.
    of course after display plot and resize it bad effect is gone - but it's not a solution, I have to show it fine in first view.
    Some part of solution could be set
    Qt Code:
    1. qwtPlot->setAutoReplot();
    To copy to clipboard, switch view to plain text mode 
    but with such set QwtPlot get bigger ( about legend size ) and mess other view with grid layout which holds Widgets with plots.
    setAutoReplot to true - false - don't work
    Is there other ( better ) function to recalculate qwtPlot ??

    Ok I found workaround by call updateLayout but just before display main widget
    Last edited by darkshu; 7th December 2010 at 08:20.

Similar Threads

  1. workaround for messagebox modality bug
    By mortoray in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2010, 11:07
  2. Workaround for a Qt ui bug
    By eurodatar in forum Qt Programming
    Replies: 2
    Last Post: 8th July 2010, 16:12
  3. Workaround for StandardItemModel drag drop bug
    By onamatic in forum Qt Programming
    Replies: 4
    Last Post: 9th November 2008, 21:50
  4. QWidget::setMask: bug &/or help for workaround
    By ataffard in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2008, 07:34
  5. Replies: 13
    Last Post: 1st October 2006, 17:02

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.