Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 3.2.2
-
None
-
Windows 7 Ultimate/64
Description
When importing a valid C++ singleton class in QML. The import statement is underlined in red and hovering shows a QML module not found error.
The class works as expected. When registering an instantiable class the import does not produce this error.
C++ registration
qmlRegisterSingletonType<MySingleton>("com.swatteam.singleton",1,0,"MySingleton", MySingleton::mySingletonProvider);
QML Usage that shows red underline error:
import com.swatteam.singleton 1.0
property string some_string : MySingleton.appTitle
Code that works
C++
mlRegisterType<Tile>("com.swatteam.tiling",1,0,"Tile");
QML
import com.swatteam.tiling 1.0