Results 1 to 9 of 9

Thread: Problem with vertical scales in Qwt 6.0.1

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2014
    Posts
    6
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question Problem with vertical scales in Qwt 6.0.1

    Hi All.

    I'm using two QwtScaleWidgets as scales for a QGraphicsView. When the visible sceneRect of the view changes I send signals to update the Qwt scales.
    This works for the horizontal scale, but not for the vertical one and I'm not sure why. The vertical scale is off on the lower and upper bound.
    The two scale widget are handled exactly the same, except that QwtScaleDraw::Alignment is different. Spacings and Margins are 0, Scaling is linear.

    The last lines of application code involved in the QwtScaleWidget-derived scale widgets are:
    Qt Code:
    1. scaleTransformation = new QwtScaleTransformation(QwtScaleTransformation::Linear);
    2. setScaleDiv(scaleTransformation, scaleEngine->divideScale(lowerBound, upperBound, nBigTicks, nSmallTicks);
    To copy to clipboard, switch view to plain text mode 
    The values passed there for lowerBound and upperBound are indeed correct (Example: -992.955, 217.5), but the resulting scale widget is not:
    awerfearfgerg.jpg
    (you can see the scale starts a ~190 and ends at ~960)

    Any ideas on what to try?

    Best Regards,

    K.

    Edit: I'm using Qt 4.8.0, but tried 4.8.6 too, should that matter...
    Last edited by kiro; 27th May 2014 at 11:06.

Similar Threads

  1. MAC ONLY- Vertical Scroll problem with QTableWidget
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2013, 10:42
  2. Replies: 0
    Last Post: 8th March 2013, 02:40
  3. Replies: 3
    Last Post: 14th April 2012, 09:44
  4. Replies: 3
    Last Post: 4th January 2011, 03:15
  5. Problem with scales
    By fear in forum Qwt
    Replies: 2
    Last Post: 5th May 2008, 22:18

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.