Either provide the proper path in the SOURCES variable or use the DEPENDPATH variable.
Printable View
Either provide the proper path in the SOURCES variable or use the DEPENDPATH variable.
Thanks!! Now it works!!! I'm so gratefull!
Now... using this post... Do you know how I custumize a pushbutton? Cause I'm programing in Windows and The default button is very common. I want to rounded it... make a shadow... something like this, you know...
Search the forum for similar questions. If you don't find an answer, start a new thread.
wysota,
Again, the similar problem appeared. Everything was working after I indexed corectly the .cpp file and .h file. But, suddently, when I edited a file in the mainwindow and I compiled it again, an error message showed up.
telainicial.cpp:3:21: error: simples.h: No such file or directory
telainicial.cpp:4:18: error: prog.h: No such file or directory
telainicial.cpp:5:19: error: trans.h: No such file or directory
telainicial.cpp:6:20: error: config.h: No such file or directory
telainicial.cpp: In member function 'void telainicial::telasimples()':
telainicial.cpp:21: error: 'simples' was not declared in this scope
telainicial.cpp:21: error: expected ';' before 'dlg'
telainicial.cpp:22: error: 'dlg' was not declared in this scope
telainicial.cpp: In member function 'void telainicial::telaprog()':
telainicial.cpp:26: error: 'prog' was not declared in this scope
telainicial.cpp:26: error: expected ';' before 'dlg'
telainicial.cpp:27: error: 'dlg' was not declared in this scope
telainicial.cpp: In member function 'void telainicial::telatrans()':
telainicial.cpp:31: error: 'trans' was not declared in this scope
telainicial.cpp:31: error: expected ';' before 'dlg'
telainicial.cpp:32: error: 'dlg' was not declared in this scope
telainicial.cpp: In member function 'void telainicial::telaconfig()':
telainicial.cpp:36: error: 'config' was not declared in this scope
telainicial.cpp:36: error: expected ';' before 'dlg'
telainicial.cpp:37: error: 'dlg' was not declared in this scope
mingw32-make[1]: Leaving directory `E:/Luiz Paulo/TelaPrincipal'
mingw32-make: Leaving directory `E:/Luiz Paulo/TelaPrincipal'
mingw32-make[1]: *** [debug/telainicial.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project TelaPrincipal
When executing build step 'Make'
It looks the mainwindow doesn't find now the dialogs indexed on it. I already checked all located in .pro file and everything is correctly. I'm now confused...
I have a version that I saved on my flash that is working... but the codes are the same. I don't know what is going on...
Post the file telainicial.cpp & h how they look currently. Did you change the location of your included files relatively to the "telainicial.cpp" file? Are they in a subfolder?
From the compiler output it appears that your header files were not found. Are you sure they are where they were last time you compiled it?
Check all of this. Something has changed certainly.
telainicial.cpp:
Code:
#include <QtGui> #include "telainicial.h" #include "simples.h" #include "prog.h" #include "trans.h" #include "config.h" { setupUi(this); connect(lentesimples, SIGNAL(clicked()), this, SLOT(telasimples())); connect(lenteprog, SIGNAL(clicked()), this, SLOT(telaprog())); connect(transmissao, SIGNAL(clicked()), this, SLOT(telatrans())); connect(configuracoes, SIGNAL(clicked()), this, SLOT(telaconfig())); } void telainicial::telasimples(){ simples dlg(this); dlg.exec(); } void telainicial::telaprog(){ prog dlg(this); dlg.exec(); } void telainicial::telatrans(){ trans dlg(this); dlg.exec(); } void telainicial::telaconfig(){ config dlg(this); dlg.exec(); };
telainicial.h
Code:
#ifndef TELAINICIAL_H #define TELAINICIAL_H #include <QMainWindow> #include "ui_telainicial.h" Q_OBJECT public: private slots: void telasimples(); void telaconfig(); void telaprog(); void telatrans(); }; #endif // TELAINICIAL_H
telainicial.pro
Code:
# ------------------------------------------------- # Project created by QtCreator 2010-05-14T10:13:43 # ------------------------------------------------- QT += opengl TARGET = TelaPrincipal TEMPLATE = app SOURCES += main.cpp \ telainicial.cpp \ ../Config/config.cpp \ ../LenteSimples/simples.cpp \ ../Progressiva/prog.cpp \ ../Transmissao/trans.cpp HEADERS += telainicial.h \ ../Config/config.h \ ../LenteSimples/simples.h \ ../Progressiva/prog.h \ ../Transmissao/trans.h FORMS += telainicial.ui OTHER_FILES +=
All dialog's folders are in the same folder, including the mainwindow's folder. I already have indexed the .h and .cpp files thounsand times but it just doesn't work. Can you try in your pc? I can send it by email...
I see some files are in subfolders. Do you have an additional include directories set to these subfolders? Or try adding a subfolder name to the include command.
The compiler output is clear. It can't find all the files that are in subfolders. Focus on that.