#include <QApplication>
#include "gtest/gtest.h"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);
    ::testing::InitGoogleTest(&argc, argv);
    int returnValue = RUN_ALL_TESTS();
    return returnValue;
}

#include <QCoreApplication>
#include "gtest/gtest.h"

int main(int argc, char** argv)
{
    QCoreApplication app(argc, argv);
    ::testing::InitGoogleTest(&argc, argv);
    int returnValue = RUN_ALL_TESTS();
    return returnValue;
}

Use QCoreApplication for unit tests as it should not depend on GUI stuff.
Use QCoreApplication for unit tests as it should not depend on GUI stuff.
