Installation of Qt Creator (Any version)
-
Thank you for your help.
You two are right. If I follow these steps I can do it, but what I need is to open an Empty Qt project.
Here, when I write my code and compile it, it is impossible to run in terminal.
I get the message: "Press return to close this window".
I feel that we are close to the solution but I can't find it.
What do you think?
Thank you again.
-
What do you mean by run in terminal ?
In any case, running an application outside Qt Creator requires the same step as you would have to do in order to deploy it on another computer.
-
Run in terminal = Projects (on the left side Menu) -> Run -> Run in terminal marked
-
What project did you create ?
-
Empty Qt project
-
Do you mean a console application ?
-
Yes.
New File/project -> Other project -> Empty Qt project. That's what I need.
-
Then it's not a console application. You asked for an empty project so you have to write everything yourself. What did you write for this project ?
-
#include <iostream>
using namespace std;
int main()
{
cout << "Hello" << endl;}
-
In what file did you write that ?
-
main.cpp
-
Hi,
If you want a console application, you need to create a console application project, not an empty project.
File -> New File or Project... -> Applications -> Qt Console Application
After that, you can remove QCoreApplication from main.cpp if you don't want to use Qt classes.
-
IT WORKS!! Not as I expected in the beginning, but it is useful.
Thank you very much.
:)
-
if you want develop using native c++ it's better to use from an c++ IDE which is simplest from Qt Creator...
We download, install and use from Qt because of it's useful libraries...
i hope you can find best answer :)