Originally Posted by
jpn
Please follow the
directions I already gave you once. There is no need to generate the header and include it to the project by hand. You should be using a variable FORMS instead.
But if I want to make changes in the maker file, which I can't do in Designer such as connecting tools->sort to another dialog, I have to generate header file and make changes and add it to project by hand. Is that right?
EDIT:
I have generated project file by makefile but there appear the same errors such as:
in main.cpp - undefined reference to _imp__ZN7QString4freeEPNS
What is wrong?
EDIT:
I think this is problem with my Qt installation, because when I try to compile simple application lioke this:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
hello.resize(100, 30);
hello.show();
return app.exec();
}
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
There appear errors such as undefined reference to QApplication, QPushButton and the same as in compiling converted ui file
So, I'll ask once again. What's wrong? I have installed Qt to my mingw compiler, set 3 environment variables. I have done it with Marcel's help, so everything should be set.....
Regards
EDIT:
Oh, now everything's ok, I just forgot to include QApplication to main file
Bookmarks