Just add QApplication for main thread processing. Refer to:
QApplication app(argc, argv);
::testing::InitGoogleTest(&argc, argv);
RUN_ALL_TESTS();
return app.exec();
版权声明:本文为MissLong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。