Thanks Preston... It's solved now. About your advice, I'll keep it my mind. I got a C++ book from Amazon now (GNU C++). I'll read this book carefully during I getting to know more about Qt. And if I have a problem, I'll ask again. Once again, thank you very...very... much. --- Preston <maillist@inbox.lv> wrote:
What happened, most likely, is that you used QT Designer to create the main.cpp file before you saved and named your conversionForm widget. If you replace the #include "unnamed1.h" with #include "FormFileName.h" (where FormFileName is the name you saved your form as with .h for an extension instead of .ui), then it should work.
You may also want to first want to improve your general C++ skills a little before jumping into QT. QT is a great toolkit to use for GUI programming using C++, but a good understanding of C++ makes it a lot easier. Look for some C++ resources on google, or get a good book from the library, and most of all, keep trying and asking questions.
Good luck,
Preston
Prabu Subroto wrote:
Thanks for your respond, Derek..
Here is my main.cpp as below:
patrixlinux@patrix:~/arsip/proyek/metric> cat main.cpp #include <qapplication.h> #include "unnamed1.h"
int main( int argc, char ** argv ) { QApplication a( argc, argv ); conversionForm w; w.show(); a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); return a.exec(); } patrixlinux@patrix:~/arsip/proyek/metric>
I don't understand what the '#include "unnamed1.h"' means... I don't have that file in my code. I tried to comment that line with "//" but the same problem still exists. I even have not made the "conversionform.ui.h" because I don't want to make a further program yet. I want to try first to display a form containing textLabel "Hallo Qt".
I joined the mailing list but no respond for my question. that's why I prefer suse-programming-e as I also know (heard) that SuSE guys use Qt to develop our beloved SuSE.
Thanks for your help, Derek. --- Derek Fountain <derekfountain@yahoo.co.uk> wrote:
main.cpp:2:22: unnamed1.h: No such file or
directory
Your main.cpp wants a header file called unnamed1.h, which it's not finding. Did you tell it to include that? Post your main.cpp file.
Alternatively, join the Qt interest mailing list (via the Trolltech website). It's quite busy and very friendly.
--
eatapple
core dump
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
__________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
__________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/