Results 1 to 2 of 2

Thread: Rotation of Svgitems

  1. #1
    Join Date
    Aug 2013
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Rotation of Svgitems

    Hello everyone,

    I tried rotate a svg item in qwtplot. But i couldn't do that. i can rotate markers with QMatrix::rotate but it does not work for svg items.
    Is there a way to using rotate to svg items?

  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: Rotation of Svgitems

    QwtPlotSvgItem scales the viewbox of the SVG into plot coordinates. An extra rotation doesn't make sense here by definition.

    When using the SVG for a symbol ( f.e as marker ) its size is in widget coordinates and the SVG could be rotated before passing it as symbol.

    When the rotation of the symbol is value depending ( f.e the z value of a 3D point ) I would implement my own type of plot item. It could be similar to QwtPlotSpectroCurve, - of course with mapping the z value somehow to a rotation instead of a colour.

    Uwe

Similar Threads

  1. Rotation Problem
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2012, 11:23
  2. 3d rotation transformation
    By feverzsj in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2010, 03:44
  3. Graph rotation
    By jomarin in forum Qwt
    Replies: 2
    Last Post: 16th August 2010, 10:21
  4. rotation and drawTexture
    By makism in forum Qt Programming
    Replies: 0
    Last Post: 24th May 2010, 09:01
  5. Rotation on Qframe
    By Pharell in forum Qt Programming
    Replies: 11
    Last Post: 2nd April 2008, 17:31

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.