Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. PySide SVG image formats not found?
QtWS25 Last Chance

PySide SVG image formats not found?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 3.1k Views
  • 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 Offline
    E Offline
    espeelman
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      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
      0
      • E Offline
        E Offline
        espeelman
        wrote on last edited by
        #3

        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
        0
        • D Offline
          D Offline
          dbzhang800
          wrote on last edited by
          #4

          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
          0
          • D Offline
            D Offline
            dbzhang800
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved