@@ -113,7 +113,7 @@ int startShell(int argc, const char** argv, void* server)
113113
114114 // The testability driver is only loaded by QApplication but not by QGuiApplication.
115115 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
116− if (args.contains(QLatin1String("-testability"))) {
116+ if (args.contains(QLatin1String("-testability")) || getenv("QT_LOAD_TESTABILITY")) {
117117 QLibrary testLib(QLatin1String("qttestability"));
118118 if (testLib.load()) {
119119 typedef void (*TasInitialize)(void);