Results 1 to 6 of 6

Thread: Help: How to draw markers on plot?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Help: How to draw markers on plot?

    The symbol size is integer based ( something in pixels), so setting a size of (0.5, 0.5) is rounded to (0, 0). And don't expect to see much of a circle, when the size is below several pixels.

    Uwe

  2. #2
    Join Date
    Nov 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default Re: Help: How to draw markers on plot?

    Quote Originally Posted by Uwe View Post
    The symbol size is integer based ( something in pixels), so setting a size of (0.5, 0.5) is rounded to (0, 0). And don't expect to see much of a circle, when the size is below several pixels.

    Uwe
    Thank you Uwe,

    Now I have changed the size to (10,10) and the circle is shown now, but it still cannot be dragged. Does using the standard QwtPickerPlot allows to dragg plot items or does it only provide the selection? I use now:
    Qt Code:
    1. // create QwtPlotPicker to allow user moving the points on the plot
    2.  
    3. picker = new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft,
    4. QwtPicker::PointSelection | QwtPicker::DragSelection,
    5. QwtPlotPicker::CrossRubberBand, QwtPicker::AlwaysOn,
    6. this->canvas());
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  2. Replies: 6
    Last Post: 21st September 2009, 10:55
  3. Replies: 1
    Last Post: 9th April 2009, 14:54
  4. Spectrogram Plot Hints
    By shargath in forum Qwt
    Replies: 2
    Last Post: 25th February 2009, 11:11
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

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.