qmldir file is ignored for any qml file in the same directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The qmldir file isn't read for any file in the same directory.
This is in general not a problem as most of the qml imports are seamless. However, you can add additional instructions in the qmldir file.
For instance, singleton:
qmldir contains:
singleton AppSettings AppSettings.qml
and AppSettings.qml starts with:
pragma Singleton
Then, in other files, you can, just use:
AppSettings.
However, this doesn't work in file in the same directory than AppSetings.qml. You need to isolate it in its own directory as a workaround and import the directory, or just 'import "."'
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qml-module-qtquick2 5.4.2-1ubuntu4
ProcVersionSign
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Aug 26 08:38:06 2015
InstallationDate: Installed on 2012-05-28 (1184 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: qtdeclarative-
UpgradeStatus: Upgraded to wily on 2014-10-31 (298 days ago)