Results 1 to 2 of 2

Thread: QwtPlotMarker example

  1. #1
    Join Date
    Mar 2010
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default QwtPlotMarker example

    Can someone post small example how can I add point (elipse) into QwtPlot?
    qwt is great but examples are very poor documented.


    sory for my english.

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Cool Re: QwtPlotMarker example

    Qt Code:
    1. QwtSymbol *sym=new QwtSymbol(QwtSymbol::Diamond,QBrush(Qt::red),QPen(Qt::red),QSize(5,5));
    2. mark->setSymbol(sym);
    3. mark->setValue(x,y);//here you have to set the coordinate axis i.e. where the axis are meeting.
    4. mark->attach(yourplot);
    To copy to clipboard, switch view to plain text mode 

  3. The following 2 users say thank you to sonulohani for this useful post:

    dontgonearthecastle (7th January 2013), martonmiklos (7th June 2012)

Similar Threads

  1. Replies: 2
    Last Post: 3rd March 2010, 16:46
  2. Replies: 5
    Last Post: 25th November 2009, 13:55
  3. Implement draggable QWtplotmarker
    By shud in forum Qwt
    Replies: 3
    Last Post: 13th August 2009, 07:25
  4. QwtPlotMarker segfault
    By viridis in forum Qwt
    Replies: 4
    Last Post: 17th September 2008, 14:22
  5. QwtPlotMarker confusion
    By baray98 in forum Qwt
    Replies: 3
    Last Post: 20th July 2008, 10:47

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.