re-type the lines with any char problems. use a plain text editor.
use #includeand about UI::qtCalc? where and how it need to be refered?
re-type the lines with any char problems. use a plain text editor.
use #includeand about UI::qtCalc? where and how it need to be refered?
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
marquessbr (14th November 2012)
ok, amlto, thank you!
Im redited my sources and now is ok, but returned this error, as the output of the terminal:
-------------------------------------------------------------------------------------------------
armando@odin-lap:~/projects/qt/calc$ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o main.o main.cpp
main.cpp:2:20: erro fatal: qtCalc.h: Arquivo ou diretório não encontrado
compilação terminada.
make: ** [main.o] Erro 1
armando@odin-lap:~/projects/qt/calc$
-------------------------------------------------------------------------------------------------
but why? if I had refered to qtCalc.h in the main.cpp file here is the code:
#include <QApplication>
#include "qtCalc.h"
int*main(int*argc,*char *argv[])
{
QApplication*app(argc,*argv);
Calc**dialog*=*new*Calc();
dialog*>show();
return*app.exec();
}
I need help
peace!
what is up with your code pasting??
did you actually try and compile this?
what's with all of the '*'??Qt Code:
#include <QApplication> #include "qtCalc.h" int*main(int*argc,*char *argv[]) { Calc**dialog*=*new*Calc(); dialog*>show(); return*app.exec(); }To copy to clipboard, switch view to plain text mode
qtCalc.h: Arquivo ou diretório não encontrado - pretty obvious, nes pas? (yes, I know different language)
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
marquessbr (15th November 2012)
Hi, amleto!
I tried other examples and they worked very well with that given to know a little more about how the compiler and also a little on the QT interface.
So thanks for all at now!
I say this because, like I said, I program in other languages, (pascal, python, php, json) and had litle contact with C/C++/QT, but I need to maintain this post unclosed, because the real reason for this post is because I had a idea to a project with will be more complex than its examples, for developer this project I will need to use one database and the sqlite/salite3 is perfect for me, because its amalgamation whose source is write in C.
so, at the right time I'll have to go deeper into the matter and if I have a question I ask for help here in the forum!
thank's
peace!
Bookmarks