1)Habe Devcpp 5 installiert und den PATH gesetzt
2) habe qt-win-opensource-4.1.2-mingw.exe ausgeführt
3) habe per configuire. exe complimiert
4) habe in dev cpp bei Werkzeuge/complier Optionen/Verzeichnisse die QT ..\lib ..\bin ..\include Verzeichnisse hinzugefügt zu den mingw Verzeichnissen
5) Hab ein Projekt erstellt und ne Quelldatei mit dem code
Code: Alles auswählen
#include <qapplication.h>
#include <qpushbutton.h>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QPushButton button("hello world", 0);
button.resize( 100, 30 );
app.setMainWidget(&button);
button.show();
return app.exec();
}
7) über die eingebekonsolle in dem verzeichniss wo das projekt ist:
qmake -project
qmake -makefile
8 ) In devcpp das erzeugte makefile bei projektoptionen ausgewählt
9) komplimiert
bekomme Fehler:
Entering directory `F:/Prog'
In function `int qMain(int, char**)':
'class QApplication' has no member named 'setMainWidget'
*** [debug\Unbenannt1.o] Error 1
Leaving directory `F:/Prog'
Was soll ich tun. hoffe die Beschreibung war genau genug