Results 1 to 3 of 3

Thread: unknown error reading svg file

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default unknown error reading svg file

    I am building user interface widgets and am using .svg files in the resource file. I have run into 1 file that QT cannot read - all the others are read fine. I'm wondering if this is a bug in the QT svg parser?

    I've attached the file. All I get is "unknown error".
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,594
    Thanks
    13
    Thanked 1,588 Times in 1,517 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: unknown error reading svg file

    Designer had no problem putting that SVG file on a QPushButton for me. Can you explain exactly how you are using the SVG? Post the offending code snippet?

    BTW: I think you and I have read the same Inkscape buttons tutorial

  3. #3
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: unknown error reading svg file

    My bad; I was initializing the images in the constructor of a containing widget, and I guess you can't do that. I moved that code out of the constructor (like the other controls that work) and it now works.

Similar Threads

  1. QSslsocket and Unknown error
    By szarek in forum Qt Programming
    Replies: 21
    Last Post: 14th October 2010, 14:20
  2. QimageReader Unknown Error
    By bhaskar in forum Newbie
    Replies: 1
    Last Post: 2nd June 2010, 08:24
  3. Fatal IO error with QGLWidget and reading a file
    By mcn in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2010, 15:21
  4. Replies: 2
    Last Post: 15th February 2010, 06:42
  5. "unknown test function error" with MAc
    By tommy in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd August 2008, 18:25

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.