[Qt-interest] QWidget not found (after qt3to4)
Andreas Pakulat
apaku at gmx.de
Sun Dec 19 21:00:59 CET 2010
On 19.12.10 19:29:58, Andrew wrote:
> Hello everybody,
> I ran qt3to4 on the .h and .cpp files of my project, and it added some
> stuff while complaining about not being able to find the header files
> that the project's dependent on. In any case, it didn't seem to impair
> its ability to work, so I told it to change all the files. Now I have
> a whole lot of these errors:
>
> ...moc_VelocityDistanceExperiment_amt.cpp
> c:\Dokumente und
> Einstellungen\Stanley\Desktop\Stanley\TactorProject\NeuroCard\Experiment_amt.h(4)
> : fatal error C1083: Include-Datei kann nicht geöffnet werden:
> 'QWidget': No such file or directory...
>
> I found qwidget.h in the C:\Qt4\qt\include\Qt directory, but for
> obvious reasons I don't want to change every instance of QWidget to
> Qt/qwidget.h.
Then fix your include paths, QWidget is a header file in include/QtGui/
so make sure thats in your include path.
> This is a Visual Studio 2003 project. I searched before and it seems
> people recommend rerunning qmake, but I'm not sure how that works with
> VS2003 because we're using VS2003's compiler here.
QMake can generate either VS project files or nmake makefiles to build
with the VS compiler, see http://doc.qt.nokia.com/4.7/qmake-manual.html
for more information about qmake.
Andreas
--
Your ignorance cramps my conversation.
More information about the Qt-interest-old
mailing list