Results 1 to 2 of 2

Thread: Can't include QtSvg

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Can't include QtSvg

    I get this error when trying to include QtSvgItem:
    Qt Code:
    1. error: QGraphicsSvgItem: No such file or directory
    To copy to clipboard, switch view to plain text mode 

    I don't know the reason for that as the files are present and when I include it's path:
    Qt Code:
    1. #include "C:\\Qt\\2009.05\\qt\\include\\QtSvg\\QGraphicsSvgItem"
    To copy to clipboard, switch view to plain text mode 
    I get the following error:
    Qt Code:
    1. undefined reference to `_imp___ZN16QGraphicsSvgItemC1ERK7QStringP13QGraphicsItem'
    2.  
    3. QGraphicsSvgItem *clk_bg;
    4. QString clk;
    5. // at -> clk_bg = new QGraphicsSvgItem(clk)
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can't include QtSvg

    add to you .pro file:
    Qt Code:
    1. QT += svg
    To copy to clipboard, switch view to plain text mode 
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. how to make include in qt
    By nataly in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2009, 16:39
  2. Include issue
    By Platoon in forum Newbie
    Replies: 2
    Last Post: 6th October 2009, 10:28
  3. mfc in QT include
    By trusch in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2009, 10:01
  4. SVGs with CSS support in QtSvg
    By lfranchi in forum Qt Programming
    Replies: 1
    Last Post: 27th December 2007, 05:20
  5. include
    By mickey in forum Newbie
    Replies: 6
    Last Post: 4th April 2006, 23:14

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.