Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
Description
The warning below can be disabled using an inline comment (// qmllint disable). However,
- qmllint does not seem to accept any arguments that can configure this warning
- qmllint --write-defaults does not produce a field in .qmllint.ini that can configure it
Code
import QtQuick import QtQuick.Layouts Window { id: root width: 640 height: 480 ColumnLayout { anchors.fill: parent Rectangle { color: "red" width: 50 } Rectangle { color: "green" } } }
qmllint output
Warning: Main.qml:14:20: Detected width on an item that is managed by a layout. This is undefined behavior; use implicitWidth or Layout.preferredWidth instead. [Quick.layout-positioning] width: 50 ^^