Results 1 to 3 of 3

Thread: can not open include file qcanvas.h no such file or directory

  1. #1
    Join Date
    Mar 2010
    Posts
    69
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default can not open include file qcanvas.h no such file or directory

    Hi all,
    I am writing a simple qt program where I am adding a Canvas and that's why I need the "qcanvas.h". Whenever I am trying to include this it is giving me the following error;

    fatal error C1083: Cannot open file : "qcanvas.h": No such file or directory

  2. #2
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Thanks
    6
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: can not open include file qcanvas.h no such file or directory

    There is no such thing as a QCanvas.

    If you need something to paint on, read this:
    http://qt.nokia.com/doc/4.6/paintsystem.html

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: can not open include file qcanvas.h no such file or directory

    The canvas module classes have been renamed and moved to the Qt3Support library.
    which qt version you are using curently .. see Porting to Graphics View http://doc.trolltech.com/4.5/graphicsview-porting.html
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Replies: 5
    Last Post: 15th June 2010, 08:42
  2. Replies: 4
    Last Post: 16th February 2010, 18:42
  3. Replies: 10
    Last Post: 15th June 2009, 20:44
  4. Replies: 1
    Last Post: 10th July 2007, 17:53
  5. unable to include header file
    By sonia in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2007, 09:56

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.