Unsolved windeployqt - Able to see console while running the application
-
Yes. It is right
-
@dheerendra I tried setting the environmental variable, but still getting the console log along with the standalone application deployed using windeployqt tool.
-
@Sandhiya
did you do a complete rebuild? Delete the build folder orclean
andrerun qmake
if you add
DEFINES += QT_NO_DEBUG_OUTPUT
inside your profile it will disable qDebug() outputs, I'm however not sure if this also effects QML.
-
@J.Hilk Yeah tried complete rebuild.Still the same.
DEFINES += QT_NO_DEBUG_OUTPUT has no effect on QML.Tried that one too -
![alt text]( image url)
-
@dheerendra I tried the same as mentioned in the above image. Still the same behavior.
-
Did you run qmake once after setting this parameter ?
-
@dheerendra Yes I did.
-
Able to figure out where exactly the problem is. The problem occurs because of adding
QT += qmltest
in .pro file. If I remove the above statement and try to build a standalone exe using windeployqt tool , only the application is getting launched without any console.
Can anyone help in solving this problem without commenting qmltest? -
@Sandhiya said in windeployqt - Able to see console while running the application:
Can anyone help in solving this problem without commenting qmltest?
why do you need this option when building a release application in the first place?
-
@raven-worx It's not needed. But when I try building the application in release mode /debug mode that flag by default will be there as part of my .pro file. Is there any way that can be ignored while build a release application?
-
@Sandhiya said in windeployqt - Able to see console while running the application:
But when I try building the application in release mode /debug mode that flag by default will be there as part of my .pro file.
not in common. What flags do you also add to the
QT
variable in your .pro file?@Sandhiya said in windeployqt - Able to see console while running the application:
Is there any way that can be ignored while build a release application?
CONFIG(release, debug|release) { QT -= qmltest }
But since you anyway do not need it simply remove it for all configurations.
-
@raven-worx I tried using that flag and it helped. Thank you for the help
-
When I tried to deploy the application in the target(Embedded linux) am still getting the console. Is there anything specific I need to do in that case?