Hallo, ich bin absoluter Anfänger was Qt4 und C++ Programmierung angeht. Deshalb bin ich gerade dabei dieses Tutorial
durchzuarbeiten.
Bei Lektion7 komme ich nicht weiter.
Ich habe QT3 und 4 installiert und möchte die ui mit dem Qt4-Designer erstellen.
also ich gebe make lektion7 ein und erhalte folgende Fehlermeldung.
Zitat:
Kann mir einer sagen woran das liegt?g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/linux-g++ -I. -I/usr/include/qt3 -Iuics/ -I. -Imocs/ -o obj/lektion7.o lektion7.cpp
qttutwidget.h:10: error: expected class-name before ‘{’ token
qttutwidget.h:10: warning: ‘class QtTutWidget’ has virtual functions but non-virtual destructor
lektion7.cpp: In function ‘int main(int, char**)’:
lektion7.cpp:10: error: ‘class QtTutWidget’ has no member named ‘resize’
lektion7.cpp:12: error: no matching function for call to ‘QApplication::setMainWidget(QtTutWidget*)â €™
/usr/include/qt3/qapplication.h:122: note: candidates are: virtual void QApplication::setMainWidget(QWidget*)
lektion7.cpp:14: error: ‘class QtTutWidget’ has no member named ‘show’
make: *** [obj/lektion7.o] Fehler 1
Wie und wo kann ich angeben dass ich QT4 und nicht QT3 benutzen will?
Danke schonmal
Bookmarks