diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index ea5166ef43d7fa9c4774b5c5f8af049b57e613fe..0cf64de1eae6e1da67ffbea9744afc5f9e862cb5 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -2401,6 +2401,11 @@ Engine::Engine() initializePrototypes(); _cppQmlTypes.load(this, CppQmlTypesLoader::builtinObjects); + + // the 'Qt' object is dumped even though it is not exported + // it contains useful information, in particular on enums - add the + // object as a prototype to our custom Qt object to offer these for completion + _qtObject->setPrototype(_cppQmlTypes.typeForImport(QLatin1String("Qt"))); } Engine::~Engine()