Reputation: 61
this might seem like the dumbest question ever, but how do you make a qmldir file with Qt Creator? I need to make one so I can use a singleton for my project.
Upvotes: 2
Views: 3274
Reputation: 49289
Right click in the project pane, the project folder or qrc, depending on your deployment type, Add New
, General
, Empty File
, name it qmldir
and you are set.
Keep in mind you can also register QML singletons in C++. I prefer this solution wherever possible, as it allows to give the singletons identifiers.
Upvotes: 4