Results 1 to 5 of 5

Thread: [solved] Problems with QGraphicsSvgItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2006
    Posts
    27
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question [solved] Problems with QGraphicsSvgItem

    Hi,

    I want to use svg graphics in my QGraphicsView and so I found the QGraphicsSvgItem Class quickly.

    Qt Code:
    1. QGraphicsSvgItem item(":/standard.svg");;
    2. scene.addItem(&item);
    To copy to clipboard, switch view to plain text mode 

    It finds the file, but cannot load it:

    Cannot open file ':/standard.svg', because: Unknown error
    I created the svg file with inkscape so I thought it uses maybe a different svg syntax or something. So I used a svg of wikipedia, but had the same problem.

    I use Qt 4.3.0.

    Do you have an idea what I'm doing wrong?

    EDIT: I forgot to mention: Same problem if I use a QSvgRenderer.
    Last edited by grosem; 17th June 2007 at 18:29. Reason: updated contents

Similar Threads

  1. Border cutting with QGraphicsSvgItem
    By akiross in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 09:12
  2. Replies: 2
    Last Post: 8th March 2007, 22:22
  3. Canvas problems
    By Tommytrojan in forum Qt Programming
    Replies: 22
    Last Post: 9th May 2006, 16:46
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.