Results 1 to 5 of 5

Thread: Customizing QwtPlotCurve and QwtPolarCurve

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Customizing QwtPlotCurve and QwtPolarCurve

    Hello!

    I'ld like to know how one could customize a QwtPlotCurve or a QwtPolarCurve to show something 'beyond' merely a simple curve. Particularly, I'ld like to know how to make QwtPolarCurve displays an arrow as phasor graphs normally do. I thought about reimplementing the virtual "drawCurve" method, but I couldn't do it in a way that would work. Could somebody please lend me a hand on this?


    Thanks,

    Momergil
    May the Lord be with you. Always.

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

    Default Re: Customizing QwtPlotCurve and QwtPolarCurve


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

    Momergil (21st May 2014)

  4. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Customizing QwtPlotCurve and QwtPolarCurve

    Quote Originally Posted by Cah View Post
    Maybe you can implement a plot item.
    I guess I got your point (I'm not familiar with using plot items this way, so it was difficult to remember of this option )


    I'll implement such solution and come with a feedback in case something "bad" happens. Thanks!


    Momergil


    Added after 42 minutes:


    Well, I did managed to reimplement draw() and create a custom arrow. The problem now is: how should I connect this item with a QwtPolarCurve, such as when the curve appears, it draws the item at its corner making the arrow figure? Reimplementing drawCurve and draw from QwtPolarCurve is only giving me crashes \o/
    Last edited by Momergil; 21st May 2014 at 22:57.
    May the Lord be with you. Always.

  5. #4
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Customizing QwtPlotCurve and QwtPolarCurve

    Well time have passed and I still haven't found any solution to this problem. Anyone could help?
    May the Lord be with you. Always.

  6. #5
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Customizing QwtPlotCurve and QwtPolarCurve

    Quote Originally Posted by Momergil View Post
    Hello!
    Particularly, I'ld like to know how to make QwtPolarCurve displays an arrow as phasor graphs normally do.
    Can you post an example how that looks like?

Similar Threads

  1. Replies: 8
    Last Post: 9th February 2014, 13:37
  2. Replies: 8
    Last Post: 18th October 2012, 08:23
  3. Replies: 1
    Last Post: 11th May 2012, 09:02
  4. QwtPolarCurve setData()---help needed
    By swamyonline in forum Qwt
    Replies: 2
    Last Post: 6th August 2008, 08:30
  5. Customizing QScrollBar
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2006, 19:01

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.