admin管理员组文章数量:1025259
I have a "console" application that depends on a lib which uses QPixmap. Therefore the application crashes if I initialize it with QCoreApplication. So instead I have to use QApplication to initialize the application. I don't even know if this causes my problem. In the Visual Studio 2022 Linker Settings I set the target system to "console" (/subsystem:console) The application starts and everything, but I wanted the console window to show up, so that I can display qInfo() information for the admin in the console. But for any unkown reason the console is'nt showing up. I only get the "Debugger-Console" inside Visual Studio but not the "execution" console.
Does anyone of you know what settings to change to get the console visible?
Using: VS2022 with Qt 6.4.2 x64
The lib (smh) uses QPixmap, for some reason the SmartServ-app will cause a runtime crash when initialized with QCoreApplication, but works fine when initializing with QApplication, just in case this might be reason for the strange behaviour.
I have a "console" application that depends on a lib which uses QPixmap. Therefore the application crashes if I initialize it with QCoreApplication. So instead I have to use QApplication to initialize the application. I don't even know if this causes my problem. In the Visual Studio 2022 Linker Settings I set the target system to "console" (/subsystem:console) The application starts and everything, but I wanted the console window to show up, so that I can display qInfo() information for the admin in the console. But for any unkown reason the console is'nt showing up. I only get the "Debugger-Console" inside Visual Studio but not the "execution" console.
Does anyone of you know what settings to change to get the console visible?
Using: VS2022 with Qt 6.4.2 x64
The lib (smh) uses QPixmap, for some reason the SmartServ-app will cause a runtime crash when initialized with QCoreApplication, but works fine when initializing with QApplication, just in case this might be reason for the strange behaviour.
Share Improve this question asked Nov 18, 2024 at 12:11 Der AchimDer Achim 907 bronze badges 1- If it's for QPixmap only, you can also use QGuiApplication, as you don't probably need the whole desktop related aspects of QApplication. – musicamante Commented Nov 18, 2024 at 17:28
1 Answer
Reset to default 1I found the solution. I was looking up the wrong project configuration. Setting to subsystem:console works just fine.
I have a "console" application that depends on a lib which uses QPixmap. Therefore the application crashes if I initialize it with QCoreApplication. So instead I have to use QApplication to initialize the application. I don't even know if this causes my problem. In the Visual Studio 2022 Linker Settings I set the target system to "console" (/subsystem:console) The application starts and everything, but I wanted the console window to show up, so that I can display qInfo() information for the admin in the console. But for any unkown reason the console is'nt showing up. I only get the "Debugger-Console" inside Visual Studio but not the "execution" console.
Does anyone of you know what settings to change to get the console visible?
Using: VS2022 with Qt 6.4.2 x64
The lib (smh) uses QPixmap, for some reason the SmartServ-app will cause a runtime crash when initialized with QCoreApplication, but works fine when initializing with QApplication, just in case this might be reason for the strange behaviour.
I have a "console" application that depends on a lib which uses QPixmap. Therefore the application crashes if I initialize it with QCoreApplication. So instead I have to use QApplication to initialize the application. I don't even know if this causes my problem. In the Visual Studio 2022 Linker Settings I set the target system to "console" (/subsystem:console) The application starts and everything, but I wanted the console window to show up, so that I can display qInfo() information for the admin in the console. But for any unkown reason the console is'nt showing up. I only get the "Debugger-Console" inside Visual Studio but not the "execution" console.
Does anyone of you know what settings to change to get the console visible?
Using: VS2022 with Qt 6.4.2 x64
The lib (smh) uses QPixmap, for some reason the SmartServ-app will cause a runtime crash when initialized with QCoreApplication, but works fine when initializing with QApplication, just in case this might be reason for the strange behaviour.
Share Improve this question asked Nov 18, 2024 at 12:11 Der AchimDer Achim 907 bronze badges 1- If it's for QPixmap only, you can also use QGuiApplication, as you don't probably need the whole desktop related aspects of QApplication. – musicamante Commented Nov 18, 2024 at 17:28
1 Answer
Reset to default 1I found the solution. I was looking up the wrong project configuration. Setting to subsystem:console works just fine.
本文标签: qtQApplication in Visual Studio 2022 console not showingStack Overflow
版权声明:本文标题:qt - QApplication in Visual Studio 2022 console not showing - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745619069a2159465.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论