Hey!
I am trying to use a popup dialog in my app, but for some reason it’s causing a crash when either the cancelled or accepted button is pressed, the code is;
Dialog {
id: customDialog
anchors.centerIn: parent
outsideTouchable: false
title: "Add a note for admins?"
positiveActionLabel: "Yes"
negativeActionLabel: "No"
onCanceled: {
note = "null"
close()
}
onAccepted: {
note = textEdit.text
close()
}
AppTextField {
id: textEdit
width: dp(200)
placeholderText: "type here..."
anchors.centerIn: parent
}
}
and the error code in my log is:
qrc:/qml/VPlayApps/controls/Dialog.qml:311: Error: Cannot assign QObject* to Dialog_QMLTYPE_18*