Unsolved Testing with Google Tests Error: QMainWindow: no such file or directory
-
Hello,
I'm trying to test my database-functions with google test.
My database-functions run without any errors.
but if I try to test my functions with google test and include my header file, where the functions are on, it always says:
QMainWindow: no such file or directory
So far my .pro looks like thisQT += core gui QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets QT += sql CONFIG += c++11 include(gtest_dependency.pri) MYSQL_LIBS=-lmysqld DEFINES += QT_DEPRECATED_WARNINGS TEMPLATE = app CONFIG += console c++11 CONFIG -= app_bundle CONFIG += thread CONFIG -= qt HEADERS += \ tst_test.h SOURCES += \ main.cpp
If I try testing my functions with Qt tests (and add the QT += lines), no errors occure with QMainWindow. But I need to use google tests.
Does somebody know what I have to do?
-
Hi,
You have "CONFIG -= qt" in your .pro file.
-
thank you!
It's working! -
@JosefSelajo said in Testing with Google Tests Error: QMainWindow: no such file or directory:
It's working!
Great, so please don't forget to mark your post as solved!