I noticed the tutorial is for 3.0 I read the documentation for 4.0 and fixed the problem. It turns out that function is no longer supported and is handled slightly differently
see here for details (QApplication section)
Nextly how do I compile an optomized version of QT. At school by default the qmake generates a make file that sets -O2 and other related optimizations. But for me at home I get the qt debuging libraries instead. Which is ok, but I want to be able to change qmake some how to produce optomized code (But not neccessarly by default). How do I do this?
qmake --help provided no helpfull resources on this (or atleast of what I understood)
Edit:
Sorry about this thread. Well anyway (Iam a newb with qt

) I found out how to do it. qmake documentation was not first on google but I found it. To make it put optimizations just do in the project file
CONFIG -= debug
CONFIG += release
and it will do the trick

.
The
docs are here (QT 3.1) however usable usable for 4.0. I don't know how much is changed.
Thank you.