Results 1 to 3 of 3

Thread: No svg-icons

  1. #1
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default No svg-icons

    Hello,

    I want to deploy a small application. But when I start the application, it doesn't show any of the svg-icons.
    When I start the application from within QtCreator everything is OK.

    All plugins are copied into the target folder (incl. the subfolders).

    I'm on Windows 7, Qz 5.7, mingw

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: No svg-icons

    Do you load the icons from files or from the resource system?
    If from files, are the paths correct?

    If the icon data is available (either in files or the resource system), does QImageReader::supportedImageFormats() report SVG?

    Cheers,
    _

  3. #3
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No svg-icons [solved]

    I load the images from the resource system.
    When I start the app from QT-Creator, supportedImageFormates() replies:
    Qt Code:
    1. "bmp"
    2. "cur"
    3. "dds"
    4. "gif"
    5. "icns"
    6. "ico"
    7. "jpeg"
    8. "jpg"
    9. "pbm"
    10. "pgm"
    11. "png"
    12. "ppm"
    13. "svg"
    14. "svgz"
    15. "tga"
    16. "tif"
    17. "tiff"
    18. "wbmp"
    19. "webp"
    20. "xbm"
    21. "xpm"
    To copy to clipboard, switch view to plain text mode 
    When I doubleclick the same exe I get:
    Qt Code:
    1. "bmp"
    2. "pbm"
    3. "pgm"
    4. "png"
    5. "ppm"
    6. "xbm"
    7. "xpm"
    To copy to clipboard, switch view to plain text mode 
    In the same directory as the exe I have a subfolder imageformats with all plugin-dlls

    I found my mistake! I forgot to copy the Qt5Svg.dll into the application directory.
    Last edited by scary hallo; 9th August 2016 at 08:30.

Similar Threads

  1. where are my icons?
    By radmir in forum Newbie
    Replies: 3
    Last Post: 29th July 2014, 17:06
  2. Replies: 2
    Last Post: 8th April 2013, 06:40
  3. Where have all the icons gone?
    By gib in forum Qt Programming
    Replies: 7
    Last Post: 6th September 2010, 08:19
  4. Stock Icons
    By wswartzendruber in forum Newbie
    Replies: 2
    Last Post: 14th February 2009, 09:31
  5. Where to get Icons from
    By pospiech in forum General Discussion
    Replies: 4
    Last Post: 19th December 2008, 21:14

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.