I'm trying to get a working QML app. It's all fine except the fact that when I run my app it opens the QML window but also a console window. Why? This is the code:
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDeclarativeView view;
view.setSource(QUrl::fromLocalFile("myfile.qml"));
view.show();
return app.exec();
}
Rectangle {
width: 940
height: 670
color: red
}
The console is for debugging with QDebug();
You can disable it by deleting line:
in your .pro file.