Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11936

Inconsistent reporting of module import errors when using versions

    XMLWordPrintable

Details

    Description

      The attached archive contains a use-lineedit-version.qml file and a LineEdit module. When the use-lineedit-version.qml file is modified to import a version of the LineEdit later than that supplied by the module (for example, 1.2), the following error is correctly reported:

      file:///home/dboddie/Resources/Training/svn/training/trunk/research/QtQuick/examples/declarative-uis/modules-components/versioned/use-lineedit-version.qml:2:1: module "LineEdit" version 1.2 is not installed
      import LineEdit 1.2
      ^

      When trying to import an earlier version that those supported by the module, a different error is reported:

      file:///home/dboddie/Resources/Training/svn/training/trunk/research/QtQuick/examples/declarative-uis/modules-components/versioned/use-lineedit-version.qml:7:5: LineEdit is not a type
      LineEdit {
      ^

      This occurs when running qmlviewer with the -I option to specify the directory containing the qmldir file or when the LineEdit directory has been installed in the /usr/local/Trolltech/Qt-4.7.0/imports directory.

      Is this a bug, or have I done something wrong with the qmldir file? I expected the same kind of error in both cases.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            boddie David Boddie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes