Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [SOLVED] QwtPlot margin
QtWS25 Last Chance

[SOLVED] QwtPlot margin

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 1 Posters 2.8k Views
  • 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 Offline
    W Offline
    WoldemarShiPa
    wrote on last edited by
    #1

    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
    0
    • W Offline
      W Offline
      WoldemarShiPa
      wrote on last edited by
      #2

      Solved:

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved