touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #98556
[Bug 1488782] [NEW] qmldir file is ignored for any qml file in the same directory
Public bug reported:
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.<property>
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
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
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-opensource-src
UpgradeStatus: Upgraded to wily on 2014-10-31 (298 days ago)
** Affects: qtdeclarative-opensource-src (Ubuntu)
Importance: Undecided
Status: New
** Tags: devexp
** Description changed:
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.<property>
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.
+ workaround and import the directory, or just 'import "."'
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qml-module-qtquick2 5.4.2-1ubuntu4
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
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-opensource-src
UpgradeStatus: Upgraded to wily on 2014-10-31 (298 days ago)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtdeclarative-opensource-
src in Ubuntu.
https://bugs.launchpad.net/bugs/1488782
Title:
qmldir file is ignored for any qml file in the same directory
Status in qtdeclarative-opensource-src package in Ubuntu:
New
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.<property>
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
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
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-opensource-src
UpgradeStatus: Upgraded to wily on 2014-10-31 (298 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1488782/+subscriptions