Results 1 to 3 of 3

Thread: rotate QwtScaleWidget to horizontal

  1. #1
    Join Date
    Mar 2013
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default rotate QwtScaleWidget to horizontal

    How can I rotate the QwtScaleWidget? Sorry for the simplicity of the question but I am not able to do it. :/

  2. #2
    Join Date
    Mar 2013
    Posts
    19
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: rotate QwtScaleWidget to horizontal

    If i understand the question I'm looking for the same thing.
    It seems that we can handle scale engine, but I couldn't find a way to make (inv)translation through a rotation/scale/shift matrix.
    I don't know if it is possible.

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: rotate QwtScaleWidget to horizontal

    Answering for Qwt 6.1 ( for earlier versions it is similar ):

    A scale widget might be horizontal or vertical - rotating it to other angles is not supported ( could be done using QwtScaleDraw and QPainter transformations - but not on a QWidget level ). The orientation is set in the constructor of QwtScaleWidget ( QwtScaleDraw::Alignment ) and can't be changed later anymore.

    When you want to have a scale from 0.0 -> 100.0 you do "plot->setAxisScale( 0.0, 100.0 )", for an inverted scale simply do "plot->setAxisScale( 100.0, 0.0 );" When you are using the auto scaler and you want to have inverted scales: enable "QwtScaleEngine::Inverted". This is all the same for scales of a plot widget or for the scales of the widgets derived from QwtAbstractScale.

    Uwe

Similar Threads

  1. QGraphicsView & QwtScaleWidget
    By fruzzo in forum Qwt
    Replies: 1
    Last Post: 28th September 2011, 18:50
  2. QwtScaleWidget title wrap problem
    By Arcadi in forum Qwt
    Replies: 1
    Last Post: 16th September 2011, 08:42
  3. Replies: 1
    Last Post: 19th July 2011, 07:32
  4. Replies: 1
    Last Post: 26th October 2008, 18:39
  5. qwtscalewidget: setting scale to the widget..
    By halberdier83 in forum Qwt
    Replies: 3
    Last Post: 4th December 2007, 08:08

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
  •  
Qt is a trademark of The Qt Company.