Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2
-
8ac9a3f80d7491674097227a8b228b9d894a2de3 (qt/qtdeclarative/dev)
Description
For code below, qmlint reports that
Info: Test2.qml:2:1: Unused import at Test2.qml:2:1 import QtQuick.Controls 2.15 ^^^^^^
But this is not true, usage of "ApplicationWindow" type requires "QtQuick.Controls" import.
And if line "import QtQuick.Controls 2.15" is removed, then during start of program I got: "ApplicationWindow is not a type" and load of suitable qml file failed.
import QtQuick 2.15 import QtQuick.Controls 2.15 Item { required property ApplicationWindow applicationWindow }