Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrade to qt 5.5.0 I got warning for QML imports

I just upgraded from 5.4.1 to 5.5.0 today. But when I build my android project I get these lines of warning in compile output:

Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: HelperWidgets

What is this? My project compiles without any warnings in the previous version.

like image 456
a.toraby Avatar asked Jul 29 '15 11:07

a.toraby


People also ask

How do I import files into QML?

Local Directory Imports Any QML file on the local file system can import a local directory as using an import statement that refers to the directory's absolute or relative file system path, enabling the file to use the object types defined within that directory.

How does QML import work?

An import statement allows clients to tell the engine which modules, JavaScript resources and component directories are used within a QML document. The types which may be used within a document depends on which modules, resources and directories are imported by the document.


1 Answers

The Qt project has a bugtracker where you should have searched for your issue.

This bug was reported a few days before your post here.

My conclusion: This issue is a bug in at least Qt 5.5.0 and 5.5.1.

Edit: The issue is still there with Qt 5.9. I never had any real problem here, and the fact that the priority in the issue trakcer is P3 indicates that this is nothing else but an incorrect warning which can simply be ignored.

like image 71
FourtyTwo Avatar answered Oct 13 '22 10:10

FourtyTwo