0
我正在创建一个应用程序,当我释放我的应用程序时使用QWebEngine我遇到了一个奇怪的问题!是我的基于GUI的应用程序打开控制台!这project.pro文件控制台在发布模式下显示QT MSVC 2015
#-------------------------------------------------
#
# Project created by QtCreator 2017-07-31T18:43:56
#
#-------------------------------------------------
QT += core gui webenginewidgets testlib
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Clicker
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
RESOURCES += \
files.qrc
win32:RC_ICONS += a.ico
当控制台打开它表明,在调试模式控制台中显示的一些数据,我想这个问题是使用QWebEngine控制台显示此数据来自网站加载在QWebEngineView数据总是与JS开始:这样
js: Phaser.Cache.isSoundDecoded: Key "dealer_12" not found in Cache.
[5684:3840:0731/214213.208:INFO:CONSOLE(27)] "Phaser.Cache.isSoundDecoded: Key "loose" not found in Cache.", source: example/libs.js (27)
这是一些数据出现在控制台所以问题是如何才能让当我开始我的应用程序该控制台不会出现?我不知道是什么导致这个问题,不知道我应该搜索什么?
更新
这是我的项目设置 here
的屏幕截图,这是一个从我的应用程序,当我打开它后,我释放的申请,并且所有的DLL文件复制到该文件夹目录here
如何构建您的应用程序? – vahancho
我同意@vahancho。请向我们展示项目设置(屏幕截图将执行)以及您正在使用的配置文件(默认,调试,发布,发布最小大小或发布调试信息)。 – rbaleksandar
这个问题看起来类似:https://stackoverflow.com/questions/760323/why-does-my-qt4-5-app-open-a-console-window-under-windows。您可以尝试应用那里描述的解决方案。 – vahancho