Results 1 to 5 of 5

Thread: How to display .svg image in Qt

  1. #1
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to display .svg image in Qt

    Hi,

    Can anyone tell me how to display the .svg images in Qt. I have placed all the images using Qt designer. But when i build and run the application the SVG images is not displayed.

    Regards,
    Priya

  2. #2
    Join Date
    Nov 2009
    Posts
    9
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to display .svg image in Qt

    Go to your app's .exe file folder. Create a new folder called imageformats, and copy in that folder the file qsvg4.dll, usually located at (QtSDK folder)\Desktop\Qt\4.7.4\mingw\plugins\imageformat s

  3. #3
    Join Date
    Apr 2011
    Location
    Palma de Mallorca, Islas Baleares, Spain
    Posts
    24
    Thanks
    5
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to display .svg image in Qt

    Yoy can see the Qt example svgviewer: http://doc.qt.nokia.com/stable/painting-svgviewer.html

    Regards

  4. The following user says thank you to sergio87 for this useful post:

    berzasnon (28th September 2011)

  5. #4
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to display .svg image in Qt

    Hi,

    I created a new folder called imageformats and copied qsvg4.dll. Still it is not displaying the svg images.

    Regards,
    Priya

  6. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to display .svg image in Qt

    I have placed all the images using Qt designer
    If the SVG "images" are icons then also create an "iconengines" folder and copy the "qsvgicon4.dll" file.

    If it still doesn't work then you will need to provide more information rather than just a "still doesn't work" message.

  7. The following user says thank you to ChrisW67 for this useful post:

    berzasnon (28th September 2011)

Similar Threads

  1. Qt Image Display...
    By mahe2310 in forum Qt Programming
    Replies: 9
    Last Post: 22nd July 2013, 09:06
  2. Replies: 1
    Last Post: 24th August 2011, 14:09
  3. How to Display the image in Qt
    By sdastagirmca in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2009, 06:17
  4. Image display
    By bmn in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 13:52
  5. Display image
    By Pesho in forum Qt Programming
    Replies: 1
    Last Post: 14th September 2007, 00:21

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.