qmldir file is ignored for any qml file in the same directory

Bug #1488782 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
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.<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)

Tags: devexp
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.