Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
6.8.0
-
None
Description
error:
ReferenceError: control is not defined
the key line:
ListView.view.model.folder = fileUrl
code:
import QtQuick import QtQuick.Controls import QtQuick.Layouts import Qt.labs.folderlistmodel import Qt.labs.qmlmodels import QtQml.Models ApplicationWindow { visible: true width: 800 height: 480 Button { text: "open" onClicked: control.open() } Dialog { id: control FolderListModel { id: folderModel showDirsFirst: true } contentItem: ListView { id: fileListView clip: true implicitWidth: 400 implicitHeight: 300 model: folderModel delegate: ItemDelegate { required property url fileUrl width: ListView.view.width text: fileUrl onClicked: { ListView.view.model.folder = fileUrl console.log("access control: " + control.width) } } } } }
Attachments
Issue Links
- relates to
-
QTBUG-134314 Cover more cases in qmllint's undefined documentation
-
- Reported
-