Results 1 to 7 of 7

Thread: How to align QwtScaleWidget with QwtPlot

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default How to align QwtScaleWidget with QwtPlot

    I create a QGridlayout and place a QwtPlot in the center and four QwtScaleWidget at the side of Top, Bottom, Left, Right of the QwtPlot.
    And all the scales of QwtPlot itself are disabled by enableAxis( ..., false ).
    I initialized the four scales like below:
    scaleTop -> setScaleDiv( plot -> axisScaleDiv( QwtPlot::xTop ) );
    ...

    But it is found that the four scales are not matched with the plot.
    The value range of the scales is ok, but the ticks are not aligned with the grid of the plot.
    How could i do something to fix this?Thanks…

    If this is done, I will place several plots in grid and a lots of scales around all the plots.

    Just like below:

    blank scale scale
    scale plot plot
    scale plot plot
    blank scale scale
    Last edited by mirrorrorrim; 21st May 2013 at 10:07. Reason: updated contents

Similar Threads

  1. rotate QwtScaleWidget to horizontal
    By SamuelNLP in forum Qwt
    Replies: 2
    Last Post: 15th March 2013, 10:22
  2. Align vertically QwtPlot
    By Valsylver in forum Qwt
    Replies: 1
    Last Post: 4th August 2012, 12:44
  3. QGraphicsView & QwtScaleWidget
    By fruzzo in forum Qwt
    Replies: 1
    Last Post: 28th September 2011, 18:50
  4. Replies: 1
    Last Post: 19th July 2011, 07:32
  5. Align QwtSlider and QwtPlot
    By justoit in forum Qwt
    Replies: 4
    Last Post: 4th May 2011, 11:41

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.