Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.2, 6.5.0 Beta2
-
595603581 (dev), 6c667ddc9 (6.5), 6937f2e50 (dev), c1d64e221 (6.5), 82cda7129 (dev), 5001df10a (6.4), 136789182 (6.5), 5d5e41ed7 (tqtc/lts-6.2)
Description
Code
import QtQuick.Controls.Basic ApplicationWindow { id: root width: 400 height: 300 visible: true footer: DialogButtonBox { standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel onAccepted: root.color = "green" onRejected: root.color = "red" } }
Compilation warning and error
Warning: main.qml:10:42: Property "Ok" not found on type "DialogButtonBox" standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel ^^ Error: main.qml:10:42: Could not compile binding for standardButtons: Cannot load property Ok from QQuickDialogButtonBoxAttached of QQuickDialogButtonBoxAttached. standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel ^^