Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    PySide SVG image formats not found?

    Installation and Deployment
    2
    5
    2669
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      espeelman last edited by

      I am using PyDev plugin for Eclipse with Qt integration. I have PySide installed and I am having trouble with SVG image formats. I know when I run my application the formats located here C:\Python27\Lib\site-packages\PySide\plugins\imageformats are found. All but the SVG format. I can remove the qico4.dll and it no longer finds them and put it back in and it finds them again.

      I am using this line in my code: plugs = QtGui.QImageReader.supportedImageFormats()

      It finds all of the formats except the SVG format from the qsvg4.dll? Why would this be? I have searched and searched and searched and can't seem to find out why. Am I the only one with this problem or does the format just not show up in the supported image formats?

      1 Reply Last reply Reply Quote 0
      • D
        dbzhang800 last edited by

        Hi,

        The svg plugin qsvg4.dll is dependent on QtSvg4.dll. Does it exist in the same directory as QtCore4.dll and QtGui4.dll ?

        Regards,

        Debao

        1 Reply Last reply Reply Quote 0
        • E
          espeelman last edited by

          Yes they all exist in the same place.

          I:\Python27\Lib\site-packages\PySide

          I can use "from PySide import QtSvg" just fine.

          I 'm trying to use an SVG image the same way I would an ICO image in a style sheet. The ico works whether I put it in a resource file or just link to it directly. The svg files won't work either way. This is why I'm confused. It seems like the interpreter is looking elsewhere for the qsvg4.dll? Or something else needs to be done to specify it as an image format?

          1 Reply Last reply Reply Quote 0
          • D
            dbzhang800 last edited by

            Hi espeedlman,

            If no other Qt library(such as PyQt4, Qt SDK, ...) exists in your system, It may be a bug of PySide.

            If more that one Qt libraries exist in your system, be careful, careful, careful again. ;-)
            If so, maybe you can try following steps:

            start cmd.exe

            • set PATH=I:\Python27\Lib\site-packages\PySide;%PATH%
            • python yourscript.py

            Hope this is useful for you.

            Regards,

            Debao

            1 Reply Last reply Reply Quote 0
            • D
              dbzhang800 last edited by

              start cmd.exe
              @
              set PATH=I:\Python27\Lib\site-packages\PySide;%PATH%
              python yourscript.py
              @

              1 Reply Last reply Reply Quote 0
              • First post
                Last post