Solved Console don't work in Windows 10
-
Hi!
I create MiniGW project#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello World!\n");
return 0;
}but after run only black screen.
Please help, how work with console? -
Hi & welcome!
What you are showing has nothing to do with Qt. You are not using the Qt library by any means in that code.
The most minimalHello World
application using Qt would looks like this:#include <QCoreApplication> #include <QDebug> int main(int argc, char* argv[]) { QCoreApplication a(argc, argv); qDebug() << "Hello World"; return a.exec(); }
You can use the "Qt Console Application" template in the QtCreator (when creating a new project) to get started. It will setup everything correctly for you.
Note that there are two possibilities: Either your code will run in the "Console" that is built-in the QtCreator or it will launch an external (system native) terminal application. This depends on theRun in terminal
option in the project settings and the *.pro file:CONFIG += console
-
Thank you very much! But need "clean C" for education.
-
Hi
Creator can also give that
-
I'm doing the same thing, but qtcreator_process_stub but nothing is displayed. qtcreator_process_stub.exe freeze.
But to reinstall Windows 10, everything worked! -
so you reinstalled win 10 and now it works or it dont works or ?
-
Don't work!
I install 8.1 and some too.
I'm doing the same thing(CleanC).
Run and in Output Window QT, i see "Starts D:\QTProject\build-untitled15-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug\untitled15.exe...".
On screen black freeze "qtcreator_process_stub.exe."
I don't know what do... -
hi
try to disable any virus scanners. -
It's helped. Thank you very much!
-
@AndreyZ
oh, super
Can i ask name of it?
Often it has been Avast :) -
Yes. It is Avast )