Hallo Liste
Ich hab ein Problem unter 10.2 von openSuSE
Ich versuche das Programm "Hello World" zu compilieren!
Hört sich einfach - dachte ich auch
Hier das Listing:
#ifdef HAVE_CONFIG_H
#include
#endif
#include
#include
#include
#include
int main(int argc, char* argv[])
{
QApplication myApp(argc, argv);
QLabel* myLabel = new QLabel("Hello world");
myLabel->resize(80, 30);
myApp.setMainWidget(&myLabel);
myLabel->show();
return myApp.exec();
}
Ich erhalte beim compilieren mit Kdevelop folgende Fehlermeldung:
hello4.cpp: In function ‘int main(int, char**)’:
hello4.cpp:15: error: ‘class QApplication’ has no member named ‘setMainWidget’
Hatte ich schon erwähnt das ich ein newbie bin?
Also ich bin da echt ratlos.
wäre für Hilfe dankbar.
Mit freundlichen Grüßen
Lars Steen
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-programming-de+help@opensuse.org