Results 1 to 5 of 5

Thread: multiple plots in QVBoxLayout: different length of legends, but same canvas width?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    14
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default multiple plots in QVBoxLayout: different length of legends, but same canvas width?

    hi everyone,

    i finally got my "multiple-plot-widget" to work, using a QVBoxLayout which contains serveral plots.

    down at the bottom, below all the plots, is a scale which should apply to all plots. therefore, all the plots (i think it's what you call their canvas) have to have the same width - independent from the length of each one's legend text.

    here's a screenshot of what it looks like now:


    as you can see, the painting area's width depends on the legend text's length.

    i tried filling all the legend texts with less characters with spaces, so they're the same length as the longest one, but that doesn't work well, because all the characters have individual widths themselves.

    so my question is, how can i make sure the width of the canvas/painting area is always the same width (in all plots), no matter how long the legend text is?

    thanks in advance and sorry for my poor english!
    sincerely,
    julian
    Last edited by -=Freaky=-; 14th October 2008 at 12:44.

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.