Results 1 to 4 of 4

Thread: Adding style inside QwtDial

  1. #1
    Join Date
    Feb 2010
    Posts
    5
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Adding style inside QwtDial

    Hi, I'm working in a circular diagram using qwt dials. The diagram is much like a clock (three needles pointing different angles). Is it possible to draw one or two internal circles inside the scale? I need them for reference, since the length of the needle indicates an important value in my GUI.

    I used the qwtClockDial code and adapted it to my needs, but I haven't found the way to do what I asked above.

    I don't have much experience working with qwt so if anyone could give me a hint, it would be appreciated.

    Thanks!

    Claudia

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

    Default Re: Adding style inside QwtDial

    Quote Originally Posted by claudiacrb View Post
    Hi, I'm working in a circular diagram using qwt dials. The diagram is much like a clock (three needles pointing different angles). Is it possible to draw one or two internal circles inside the scale?
    Overload one of the following:


    • virtual void QwtDial::drawContents (QPainter *) const
    • virtual void QwtDial::drawScaleContents (QPainter *painter, const QPointF &center, double radius) const


    Check the dials example,

    Uwe

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

    claudiacrb (12th March 2012)

  4. #3
    Join Date
    Aug 2013
    Posts
    2
    Qt products
    Qt4

    Default Re: Adding style inside QwtDial

    Quote Originally Posted by Uwe View Post
    Overload one of the following:


    • virtual void QwtDial::drawContents (QPainter *) const
    • virtual void QwtDial::drawScaleContents (QPainter *painter, const QPointF ¢er, double radius) const


    Check the dials example,

    Uwe
    I don't find example. Can you give me link???

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

    Default Re: Adding style inside QwtDial

    Surprisingly the dials example can be found in the directory: examples/dials.

Similar Threads

  1. Replies: 2
    Last Post: 14th August 2012, 18:35
  2. Adding a size grip to a windows vista style window
    By stevel in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2010, 19:23
  3. Replies: 2
    Last Post: 3rd April 2010, 15:18
  4. QWTDial problem
    By zaferaltug in forum Qwt
    Replies: 2
    Last Post: 20th November 2008, 15:40
  5. QwtDial not exits
    By hiuao in forum Qwt
    Replies: 1
    Last Post: 23rd August 2007, 09:22

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.