niodio
(usa Fedora)
Enviado em 15/04/2012 - 21:49h
Achei uma apostila que ensina a fazer uma calculadora com QT Creator, criei um novo projeto widget e no preimeiro passo manda mudar o "Object Name" da janela. Depois que mudo o object name e vou compilar começa a dar erro...
21:44:48: Running build steps for project QTCalculadora...
21:44:48: Starting: "/usr/bin/make" clean -w
make: Entering directory `/home/MelkorValar/QTSDK_projects/QTCalculadora-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release'
rm -f moc_qtcalc.cpp
rm -f ui_qtcalc.h
rm -f main.o qtcalc.o moc_qtcalc.o
rm -f *~ core *.core
make: Leaving directory `/home/MelkorValar/QTSDK_projects/QTCalculadora-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release'
21:44:48: The process "/usr/bin/make" exited normally.
21:44:48: Configuration unchanged, skipping qmake step.
21:44:48: Starting: "/usr/bin/make" -w
make: Entering directory `/home/MelkorValar/QTSDK_projects/QTCalculadora-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release'
/opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/uic ../QTCalculadora/qtcalc.ui -o ui_qtcalc.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/linux-g++ -I../QTCalculadora -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include -I. -I. -I../QTCalculadora -I. -o main.o ../QTCalculadora/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/linux-g++ -I../QTCalculadora -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtCore -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include/QtGui -I/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include -I. -I. -I../QTCalculadora -I. -o qtcalc.o ../QTCalculadora/qtcalc.cpp
../QTCalculadora/qtcalc.cpp: In constructor 'qtCalc::qtCalc(QWidget*)':
../QTCalculadora/qtcalc.cpp:6:16: error: invalid use of incomplete type 'struct Ui::qtCalc'
../QTCalculadora/qtcalc.h:7:7: error: forward declaration of 'struct Ui::qtCalc'
../QTCalculadora/qtcalc.cpp:8:7: error: invalid use of incomplete type 'struct Ui::qtCalc'
../QTCalculadora/qtcalc.h:7:7: error: forward declaration of 'struct Ui::qtCalc'
../QTCalculadora/qtcalc.cpp: In destructor 'virtual qtCalc::~qtCalc()':
../QTCalculadora/qtcalc.cpp:13:12: warning: possible problem detected in invocation of delete operator: [enabled by default]
../QTCalculadora/qtcalc.cpp:13:12: warning: invalid use of incomplete type 'struct Ui::qtCalc' [enabled by default]
../QTCalculadora/qtcalc.h:7:7: warning: forward declaration of 'struct Ui::qtCalc' [enabled by default]
../QTCalculadora/qtcalc.cpp:13:12: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
make: Leaving directory `/home/MelkorValar/QTSDK_projects/QTCalculadora-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release'
make: *** [qtcalc.o] Error 1
21:44:49: The process "/usr/bin/make" exited with code 2.
Error while building project QTCalculadora (target: Desktop)
When executing build step 'Make'
este é o output de compilação.
Acho que conforme eu mudo o object name de "mainWindow" para um de minha preferencia tipo "qtCalc" o object name nao é mudado nos arquivos .h e .cpp
Alguem sabe se isso realmente é um bug da IDE ou eu que to fazendo algo errado? Sera que tenho de mexer em alguma configuração na ide para assim q trocar o object name ele ja mudar nos arquivos tb?
ajuda ae...