Results 1 to 7 of 7

Thread: How can I draw needle for dial in Qwt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2008
    Posts
    36
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: How can I draw needle for dial in Qwt

    I use setNeedle Method but this method want QwtDialNeedle object but QwtDialNeedle is abstract class.How can I do this .

    I write this code but I take access violation error.
    Qt Code:
    1. ui.setupUi(this);
    2. QwtDial *d=new QwtDial(ui.label);
    3. d->setScaleArc(30,330);
    4. d->setScale(100,10,60);
    5. /*d->setOrigin(100);*/
    6. d->setLineWidth(15);
    7. d->setValue(5);
    8. d->setWrapping(false);
    9. d->setNeedle(nd);
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 3rd February 2008 at 16:01. Reason: missing [code] tags

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.