I tried one of the two available qt4-qmake-project-templates from kdevelop.
Unfortunately they are not ui based so that i have to add/substitute
the "startup-Form" by my own.
Here is my main.cpp:
(test is the projects name)
#include <QApplication>
#include "ui_mydialog.h"
#include "test.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
QApplication app(argc, argv);
QDialog *window=new QDialog;
Ui::MyDialog ui;
ui.setupUi(window);
window->show();
return app.exec();
}
this creates the following errot:
main.cpp:(.text+0x1d): undefined reference to `qInitResources_application()'
I have not enough experience to figure it out myself, so i ask here.
Any ides what i should change or what i can check ?
Opensuse 10.2./ Qt4 / Kdevelop 3.5
cheers wally
Bookmarks