Results 1 to 4 of 4

Thread: QwtPolar - Title for Radius Axis

  1. #1
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default QwtPolar - Title for Radius Axis

    Hello,

    is it possible in QwtPolar to set a title/unit for the axes (at least for the radius axis)? Unlike QwtPlot, QwtPolarPlot misses methods like setAxisTitle(...)
    I'm using QwtPolar 1.0.1.

  2. #2
    Join Date
    Dec 2013
    Location
    Toronto, Canada
    Posts
    62
    Thanked 16 Times in 15 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QwtPolar - Title for Radius Axis

    QwtPolarMarker() should work.

  3. The following user says thank you to Cah for this useful post:

    Crowley (22nd May 2014)

  4. #3
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: QwtPolar - Title for Radius Axis

    As a workaround, ok. I am using it (seeing no alternative). But re-positioning for changes in the scale has to be done all "manually" then.

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

    Default Re: QwtPolar - Title for Radius Axis

    I would derive from QwtScaleDraw and overload one of its virtual methods, adding the QPainter::drawText() call you need. F.e:

    Qt Code:
    1. class YourRadiusScaleDraw: public QwtScaleDraw
    2. {
    3. ...
    4. protected:
    5. virtiual void drawBackbone( QPainter *painter ) const
    6. {
    7. QwtScaleDraw::drawBackbone( painter );
    8.  
    9. // now calculate the position/alignment/rotation for your text and
    10. // do the painter->:drawText() call
    11. ...
    12. }
    13. };
    To copy to clipboard, switch view to plain text mode 
    HTH, Uwe

Similar Threads

  1. How to rotate right axis title?
    By beckjoh in forum Qwt
    Replies: 2
    Last Post: 6th May 2014, 07:12
  2. Axis Title to axis label alignment
    By ROCKSTAR in forum Qwt
    Replies: 0
    Last Post: 5th February 2014, 12:47
  3. QwtPolar Axis Azimut
    By Alexeev in forum Qwt
    Replies: 1
    Last Post: 3rd November 2013, 10:38
  4. Replies: 1
    Last Post: 27th November 2012, 16:52
  5. how rotate axis title
    By Andell in forum Qwt
    Replies: 2
    Last Post: 1st October 2012, 00:11

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.