Results 1 to 3 of 3

Thread: QML and SVG

  1. #1
    Join Date
    Mar 2012
    Location
    Moscow
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default QML and SVG

    Problem: SVG images are displayed as bitmap (raster) not vector graphics. WTF?

    import QtQuick 1.0

    Image {
    source: "background.svg"

    }

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QML and SVG

    What exactly do you mean? At some point a vector image needs to be rasterized to be displayed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2010
    Posts
    82
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 9 Times in 9 Posts

    Default Re: QML and SVG

    i agree but if you're having resizing issue that is because you need to use the sourceSize property and not the size

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
  •  
Qt is a trademark of The Qt Company.