[Qt-interest] built bin with project and makefilfe with qmake

Musicissuper at web.de Musicissuper at web.de
Wed Mar 4 10:59:47 CET 2009


Hello,
I am Noob in C++ and I made a GUI with the program QT Designer and I saved it as an *.ui file (Oberfläche.ui). Like my *.ui file I also want to insert the "HelloWorld.cpp" file into *.pro file made by qmake. My *.pro file(qmake named my file altes.pro):

######################################################################
# Automatically generated by qmake (2.01a) Tue Mar 3 16:41:39 2009
######################################################################

TEMPLATE = app
TARGET = 
DEPENDPATH += .
INCLUDEPATH += .

# Input
FORMS += Oberfläche.ui
SOURCES += HelloWorld.cpp

My Hello World file:
 #include <QApplication>
 #include <QPushButton>

 int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);

     QPushButton hello("Hello world!");

     hello.show();
     return app.exec();
 }

I am working with fedora(linux) and in my Terminal I typed in the following things:
qmake-qt4 -project (to build my *.pro file)
qmake-qt4 (to build my Makefile)
make
I open my application but the computer doesn't displays the other items I set on my window.
My Problem is, he has probably ignored my *.ui file. And if I try to open my file ui_Oberfläche.h
the computer says "Couldn't display: /home/User/Desktop/altes/ui_Oberfläche.h".
Thanks for any answers, pls remember I am NOOB. Thanks
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123





More information about the Qt-interest-old mailing list