PDA

View Full Version : can not open include file qcanvas.h no such file or directory



chandan
8th March 2010, 15:10
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

boudie
8th March 2010, 15:37
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

wagmare
9th March 2010, 05:21
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