By the way... I used that qmake thing... I suppose that compiles, doesn't it? This demonstrates my level of "lostiness"...![]()
By the way... I used that qmake thing... I suppose that compiles, doesn't it? This demonstrates my level of "lostiness"...![]()
Did you try this linkhttp://www.imb-jena.de/~hollund/software.html
See the section Qt4 with Dev-C++
I'm using Kdevelop on linux system and there is no problem.
I don't understand what all this confusion is about. For Windows, I download Qt open source, and run the installer program. When it asks me if I want MinGW, I say yes. But if you already have MinGW with Dev-C++, then say no, and give it the right location. Soon Qt is installed and working. Very easy.
If you are having troubles, then you need to say more than just "it doesn't work." Tell us WHAT doesn't work. Tell us the error messages. Tell us exactly what you are doing.
Ok, so I have:
1) Downloaded Qt 4.2.3 Open Source installer
2) Installed it to my Dev-C++ directory
3) Added this template to my Dev-Cpp/Temaplates
4) Added C:/Qt/4.2.3/lib library and C:/Qt/4.2.3/bin binary file to Dev-C++ by tools->compilator options->directories
The warnings are such as:
And more. Code, which I have used:Qt Code:
6 C:\Dev-Cpp\main.cpp expected `;' before "app"To copy to clipboard, switch view to plain text mode
#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();
}
What about the include paths? Have you set them correctly?
They should be ( or contain ) C:/Qt/4.2.3/include
Regards
They're in c:/Qt/4.2.3/include but how could I set them to Dev?
Create a new project and look in the project options.
I never used it, but any decent IDE should have an option for additional include paths.
Regards
I have added this to Project options->directiories but it still doesn't work. The same errors. What I am doing wrong?
Try adding the to Tools/Compiler options/Directories/C++ includes also.
Maybe it works this way.
Somehow it's gotta work...![]()
No, It still doesn't work. (To one of users: Now you see, what is this confusion about). So what do I have to do to set all of this .... correctly? Regards
I used your template and I made it work. But this is an unacceptable solution. You have to add all the directory paths inside c:\qt\include in the project options.
Regards
It means that I have to add every file which is in include directory manually? Do I have to do the same with bin and lib directories?
Bookmarks