Results 1 to 8 of 8

Thread: QwtPolar and orientation of azimuth scale

  1. #1
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QwtPolar and orientation of azimuth scale

    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,253
    Thanked 860 Times in 809 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    Indeed - I'm afraid the only solution is to derive from QwtRoundScaleDraw overloading:

    Qt Code:
    1. virtual QwtText YourScaleDraw::label( double ) const;
    To copy to clipboard, switch view to plain text mode 

    Then you have to assign this new scale draw instance using QwtPolarGrid::setAzimuthScaleDraw().

    Uwe

  3. #3
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    Hi,
    I suppose that I have to implement QwtPolarGrid::setAzimuthScaleDraw() method because I can't find it in qwtPolarGrid (qwt polar 4.5.2).
    So I have to inherit from class qwtPolarGrid and QwtRoundScaleDraw ?

    I have found this: http://www.qtcentre.org/threads/1639...RoundScaleDraw

    But, It seems that it was an older version of qwtPolar because "setScaleDraw" is not present anymore.

    Thanks !
    Last edited by lokida; 4th April 2011 at 11:04.

  4. #4
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    Hi,

    So, no one can Tell me what is the good method to use in order to pass virtual QwtText YourScaleDraw::label( double ) const implementation ?

    Thanks a lot.

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

    Default Re: QwtPolar and orientation of azimuth scale

    Download Qwt and QwtPolar from SVN trunk and reread my previous answer.

    Uwe

  6. #6
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    Ok, I haven't got the svn version but the zip. So now I have the version from the svn but I have a question:

    Where Should I declare QWT_INCLUDEPATH and QWT_LIBRARYPATH ?

    In the INSTALL file it tells to modify these variable in qwtpolar.pri to set the Qwt paths.
    But in this version there is qwtpolarbuild.pri and qwtpolarconfig.pri

    I have tested in both pri files but always the same errors: It can't find headers files.

    So where should I declare path to qwt libs and headers ?

    Thanks.

  7. #7
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    So, Because I haven't found the way to resolve the good declaration of the to qwt for qwtPolar (using visual studio 2005 and qt 4.5.2), I declare the path in visual studio.
    So, now I have a compilation error with #include <qwt_interval.h> that it can't find. I have seen that it is not in qwt 5.2.1 but it is in qwt 6 beta.

    So, does the last version of the qwtpolar svn only work with qwt6 beta or can it be used with qwt 5.2.1 ?

    Thanks.

  8. #8
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,253
    Thanked 860 Times in 809 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPolar and orientation of azimuth scale

    Quote Originally Posted by lokida View Post
    I have seen that it is not in qwt 5.2.1 but it is in qwt 6 beta.
    Yes QwtPolar from SVN trunk is for Qwt 6 only.

    I recommend to use Qwt 6 from SVN trunk ( no snapshots ) - or wait a couple of days until I have found the time to release a tarball from this version as Qwt 6.0.0 final.

    Uwe

Similar Threads

  1. QwtPolar picker
    By slux in forum Qwt
    Replies: 5
    Last Post: 11th May 2011, 11:37
  2. QwtPolar 0.1.0
    By Uwe in forum Qt-based Software
    Replies: 1
    Last Post: 12th October 2009, 10:40
  3. Replies: 1
    Last Post: 9th October 2008, 08:23
  4. QwtPolar 0.0.1
    By Uwe in forum Qt-based Software
    Replies: 0
    Last Post: 1st May 2008, 17:46
  5. Azimuth and elevation widgets?
    By high_flyer in forum General Discussion
    Replies: 2
    Last Post: 27th July 2006, 10:44

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.