Results 1 to 3 of 3

Thread: SVG QICONs not appearing after deploy (QT 4.2.2)

  1. #1
    Join Date
    May 2006
    Posts
    19
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default SVG QICONs not appearing after deploy (QT 4.2.2)

    Hello,
    I'm having problems with the display of svg icons after I have deployed my application on a vanilla windows xp machine. On my develoment machines, Winxp and ubuntu, I don't have this issue.

    The application has both svg and png icons. The png icons are displayed correctly, but as I have said, the svg icons do not display!

    The icons are in a sub directory of the applicaion directory called icons. I set the icons as follows:

    optionsPushButton->setIcon(QIcon("./icons/configure-b.svg"));
    hideButton->setIcon(QIcon("./icons/down.svg"));
    exitButton->setIcon(QIcon("./icons/logout.svg"));


    I deploy the following dlls with the application: mingwm10.dll, QtCore4.dll, QtGui4.dll and QtXml4.dll.

    Has anyone come across this before?

    Cheers,
    Donal

  2. #2
    Join Date
    Jan 2006
    Location
    Innsbruck, Austria
    Posts
    62
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SVG QICONs not appearing after deploy (QT 4.2.2)

    Looks like the program doesn't find the icons. Have you tried using QCoreApplication::applicationDirPath()?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: SVG QICONs not appearing after deploy (QT 4.2.2)

    Quote Originally Posted by donmorr View Post
    I deploy the following dlls with the application: mingwm10.dll, QtCore4.dll, QtGui4.dll and QtXml4.dll.
    It looks like you forgot about QtSvg4.dll and qsvg1.dll (the latter should be in imageformats subdirectory). Also consider using absolute paths instead of relative ones.

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.