Extra window when creating my .exe
-
Why do you have testlib in your application dependencies ?
-
Hi,
Is it a qmake or CMake project ?
-
Any chance you have
CONFIG += consolein it ? -
@Oumayma said in Extra window when creating my .exe:
No, i haven't
Then add
CONFIG -= consoleto your pro file and take a look if you really don't add it somewhere. -
Ok, can you share your .pro file ?
Which compiler are you using ?
Which version of Qt ?
How are you starting your application ? -
Ok, can you share your .pro file ?
Which compiler are you using ?
Which version of Qt ?
How are you starting your application ?My .pro
QT += core gui printsupport testlib greaterThan(QT_MAJOR_VERSION, 4): QT += widgets qml quick CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 INCLUDEPATH += $$PWD SOURCES += \ Manager.cpp \ main.cpp HEADERS += \ Constants.h \ Manager.h FORMS += \ Interfaz.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ iconos.qrc ANDROID_ABIS = armeabi-v7a arm64-v8a x86 x86_64 ANDROID_PACKAGE_SOURCE_DIR = $$PWD/AndroidSource DISTFILES += \ .gdbinit \ AndroidSource/AndroidManifest.xml \ TextosAyuda/Ayuda1 \ TextosAyuda/Ayuda1.txt \ TextosAyuda/Ayuda2 \ TextosAyuda/Ayuda3 \ TextosAyuda/AyudaPruebas.txtCompailer: MinGW 8.1.0 32-bit for C++
QT version : QT 5.15.1
I click in .exe of mi app.
-
-
Why do you have testlib in your application dependencies ?
-
I have reviewed my code and I see why I have the dependencie for testliib in mi app. it is because i have a old import of QTestEventList class. But currently I do not use the QTestEventList class at all, I have removed the import of the code and the testlib from .pro and the second window no longer appears. Thank you very much for the help.
-
Good cleanup.
That said, the test module is meant for that: testing. It shall not be part of an application that is not part of a test bed.
