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 Worldapplication 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 terminaloption in the project settings and the *.pro file:CONFIG += console -
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! -
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... -
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...

