Results 1 to 2 of 2

Thread: Problem with QGraphicsSvgItem

  1. #1
    Join Date
    Mar 2007
    Posts
    31
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13

    Question Problem with QGraphicsSvgItem

    I got an error when I include QGraphicsSvgItem in my program:
    Qt Code:
    1. error: QGraphicsSvgItem: No such file or directory
    To copy to clipboard, switch view to plain text mode 


    I have read Trolltech's Docs and they says that QGraphicsSvgItem class was introduced since Qt 4.2, I have Qt 4.2.3 installed.

    My program look like this:
    Qt Code:
    1. #include<QGraphicsSvgItem>
    2. //
    3. class SVGItem : public QGraphicsSvgItem
    4. {
    5.  
    6. public:
    7. SVGItem(const QString & fileName, QGraphicsItem * parent = 0);
    8.  
    9. };
    10. #endif
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2007
    Posts
    31
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13

    Default Re: Problem with QGraphicsSvgItem

    Well, I have found the problem reading a little more inside Qt Assistant.

    It's necessary to add the following line to the .pro :

    QT+= svg

    Regards!!

Similar Threads

  1. [solved] Problems with QGraphicsSvgItem
    By grosem in forum Newbie
    Replies: 4
    Last Post: 17th June 2007, 19:27
  2. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 13:54
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 13:45
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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
  •  
Qt is a trademark of The Qt Company.