Results 1 to 3 of 3

Thread: Problems with svg items

  1. #1
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problems with svg items

    Hello everyone,

    I have a plot that contains some svg items with using QwtPlotSvgItem. And I also use mouseEvents on these Svg items. But when i zooming with mouse wheel these svg items scale are changing. I want them stable. I mean they should not effect to zooming. I cant solve it.

    Is there any advice for it?

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

    Default Re: Problems with svg items

    QwtPlotSvgItem scales the corrdinates of the SVG icon according to plot coordinates - if you don't want that use a QwPlotMarker with the SVG as symbol.

    Uwe

  3. #3
    Join Date
    Jan 2014
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with svg items

    Yeah i can do that but when i use QwtPlotMarker with SVG as symbol how can i use mouse event (right, left clicks vs ) on them?
    Last edited by alperyazir66; 26th March 2014 at 13:29.

Similar Threads

  1. Replies: 1
    Last Post: 22nd October 2012, 10:02
  2. How to iterate through GraphicsScene items using items()
    By MercyYuen in forum Qt Programming
    Replies: 5
    Last Post: 10th October 2012, 15:51
  3. Replies: 0
    Last Post: 15th April 2011, 19:04
  4. Replies: 2
    Last Post: 20th August 2010, 05:18
  5. Replies: 2
    Last Post: 23rd July 2010, 14:53

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.