Solved How to use the new QtCreator for console input/output?
-
@mrjj I used to so never encountered ...
and today was puzzled :-) -
Oh
So it changed between 5.7.0 and 5.7.1 ? -
@mrjj yes!
maybe it's just me ... -
@Koljasha
Maybe the .user file was damaged
and the setting did not really work.
Before you reset it. -
@mrjj I specifically removed ~/.config/QtProject
still must disable/enable "Run in terminal"
work at least now there is a solution on the forum :-) -
@Koljasha
Hi
in the project folder
there is a .user file
same name as the .pro
Did u try delete that?
(not sure it does anything. just to check) -
@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 ... -
@Koljasha
Yes it could be as its different on win / linux with the "console"
Good test :) -
@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. -
@Koljasha
Ok. let me see if i get bug when upgrading. :) -
@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"; -
@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. -
@raymanT
Ok. If it is a bug it most likely get fixed in next release. I have not
tried yet to fully reproduce it. Seems not to happen every time. -
@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 !
-