How to use the new QtCreator for console input/output?
-
@mrjj No...
It is not work. I delete .user file....
It's something in new Qt ot QtCreator.... and maybe only in Linux...
Tomorrow I will try to install on Windows, and then write ... -
@mrjj Hello!
I try on two my PC with Windows 10 (home and work). And everywhere I must recheck (turn off/on) "Run in terminal". It's bug in new version. -
@mrjj hi I have the same problem, too
It seems that qt creator didn't write the "run in terminal" option
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value>
in the pro.user file after the project created by the wizardthe "UseTerminal" line above will be writed into the pro.user file only if I manually uncheck and check this option in the project setting .
I tried to find a config file of Qt4Project in the qtcreator to correct its behavior but failed,.
Could you please give me some advice to fix this problem?
Thanks in advance. -
@mrjj hi I have the same problem, too
It seems that qt creator didn't write the "run in terminal" option
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">true</value>
in the pro.user file after the project created by the wizardthe "UseTerminal" line above will be writed into the pro.user file only if I manually uncheck and check this option in the project setting .
I tried to find a config file of Qt4Project in the qtcreator to correct its behavior but failed,.
Could you please give me some advice to fix this problem?
Thanks in advance. -
@raymanT
Does sounds the same. Flip flopping the settings makes it save it.
I upgraded via maintenance tool but here the settings does seems to work. -
@mrjj
Hello
I just found that if using Qbs I will not encounter this problem, maybe it is the problem of qt4projectmanager, now I just use Qbs in my project for workaround. -
@mrjj OK.
It is very interesting. I use clean installation on Ubuntu and Windows.
And for exemple free C++ project and free Qt console project.
In C++: cout << "Hello" << endl;
In Qt: qDebug() << "Hello";@Koljasha Hi, I got a doubt related to console output. I suppose the console output appears in the compile output section of the Qt Creator. Please confirm.
Suppose , In Qt , QString myQuote= "Hello";
Can I write qDebug()<< myQuote to get Hello in my console output?Thanks !
-
@Koljasha Hi, I got a doubt related to console output. I suppose the console output appears in the compile output section of the Qt Creator. Please confirm.
Suppose , In Qt , QString myQuote= "Hello";
Can I write qDebug()<< myQuote to get Hello in my console output?Thanks !