Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] QwtPlot margin

    3rd Party Software
    1
    2
    2627
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WoldemarShiPa last edited by

      Hello. My goal is to have many QwtPlot's synchronized by x-scale, but zooming increases number of y-scale digits and graphs are not laying directly under each other. So, I get this picture:

      !http://db.tt/ETi7NCP5(111)!

      It seems like I should set minimum width of QwtScaleWidget, but after

      @graph->axisWidget(QwtPlot::Axis::yLeft)->setMinimumWidth(50);@

      scale is laying under canvas:

      !http://dl.dropboxusercontent.com/u/11635312/2.png(22)!

      How can I set canvas margin or solve problem any other way? Thanks

      1 Reply Last reply Reply Quote 0
      • W
        WoldemarShiPa last edited by

        Solved:

        graph->axisWidget(QwtPlot::Axis::yLeft)->scaleDraw()->setMinimumExtent();

        1 Reply Last reply Reply Quote 0
        • First post
          Last post