Results 1 to 3 of 3

Thread: One-line legend has unneeded scrollbars in Qwt

  1. #1
    Join Date
    Sep 2010
    Posts
    43
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default One-line legend has unneeded scrollbars in Qwt

    Hello,

    I just updated a local copy of Qwt in our program from an old SVN version (November, I think; when it had an old legend code) to the newest one and made minor updates to the program for it to compile.
    However, I get strange scrollbars in the legend, even if it contains only one line of entries.
    Calling QwtLegend::updateGeometry() after QwtPlot::replot() helps on some plots (the scrollbar disappears), but not all (not sure of the difference between them). They mostly appear on subsequent calls to replot(), not the first one (I think).
    I'm attaching a screenshot of our plot which shows the problem.

    I can get a somewhat similar result with Qwt's "Legends" example. Not sure if its the same problem or not, though.
    To reproduce: Open "legends" example, enable "Legend", set position to Bottom, increase/decrease the number of curves. Scrollbars should appear in the legend (they appear for me for 2 curves and more, for example, and sometimes 1 as well).

    Thanks a lot!

    qwt_legend_scrollbars.png

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,253
    Thanked 860 Times in 809 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: One-line legend has unneeded scrollbars in Qwt

    Fixed in SVN trunk.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    alex_sh (14th March 2012)

  4. #3
    Join Date
    Sep 2010
    Posts
    43
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: One-line legend has unneeded scrollbars in Qwt

    Just tested the SVN version and indeed it fixed the problem.

    Huge thanks!

Similar Threads

  1. qGraphicsView scrollbars not getting smaller
    By danbelsey in forum Newbie
    Replies: 0
    Last Post: 1st August 2011, 17:43
  2. Scrollbars for QStackedLayout
    By JohannesMunk in forum Newbie
    Replies: 0
    Last Post: 6th December 2009, 17:50
  3. scrollbars and qgraphicsview
    By captiva in forum Qt Programming
    Replies: 13
    Last Post: 20th February 2009, 13:00
  4. QGraphicsView and scrollbars
    By godmodder in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 23:34
  5. How to get scrollbars in QTreeWidget
    By Arthur in forum Qt Programming
    Replies: 14
    Last Post: 5th May 2006, 22:51

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.