Results 1 to 5 of 5

Thread: setting needle size in qwtCompass

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: setting needle size in qwtCompass

    Of course it has to look like this.

    Qt Code:
    1. class myCompass: public QwtCompass
    2. {
    3. ...
    4.  
    5. virtual void drawNeedle( QPainter *painter, const QPoint &pos,
    6. int radius, double direction,
    7. QPalette::ColorGroup colorGroup) const
    8. {
    9. ...
    10. }
    11. };
    To copy to clipboard, switch view to plain text mode 

    If this doesn't help start the debugger, set a breakpoint in QwtDial::drawNeedle and check if it is called from myCompass::drawNeedle.

    Uwe

  2. #2
    Join Date
    May 2007
    Location
    Australia
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting needle size in qwtCompass

    Thank you Uwe.

    It works now. I didn't type it properly: const QPoint instead of const QPoint &

Similar Threads

  1. Replies: 3
    Last Post: 30th January 2007, 07:35
  2. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.