qt icon indicating copy to clipboard operation
qt copied to clipboard

Why is there DOS information, a lot of information displayed before the start window

Open smp12345 opened this issue 3 years ago • 2 comments

Hello, once the compilation is complete, there is a lot of DOS information, and after that information is displayed, the application will be launched

error

smp12345 avatar Sep 18 '20 10:09 smp12345

I do not work with this on windows but i know with normal golang you have to pass -ldflags -H=windowsgui to go build to remove that command prompt on windows.

you should be able to pass it to qtdeploy like this qtdeploy -ldflags -H=windowsgui build desktop just like you would with go build

HikariKnight avatar Oct 17 '20 10:10 HikariKnight

@HikariKnight Thank you for your help. I have solved this problem by setting the environment variable before.I haven't been paying attention to this project for a long time. I recently noticed that the project has been compiled with -ldflags -H=windowsgui Now I need to display the DOS window again because of debugging requirements, but it is not displayed by default

smp12345 avatar Feb 19 '21 09:02 smp12345