Good Day,
How can I retrieve a value and/ a key on Page 1 for instance, if it was stored using secure storage on the Startpage of a stackview layout. I have tried the value method however I am not successful. For example:
1. Start Page would look something like
TextField {
id: key
placeholderText: "Enter key"
}
TextField {
id:value
placeholderText: "Enter value"
anchors.left: key.right
}
//Click on the button to store data into keychain
Button {
id: SecureButton
text: qsTr ("Secure Data")
anchors.left: key.bottom
onClicked: {
SecureStorage.setValue(key.text, value.text)
}
}
2. Page 1 would look something like
//Click on button to retrieve data
Button {
id: retrieveButton
text: qsTr ("Retrieve Data")
anchors.top: secureButton.bottom
onClicked: {
retrieveData.text = qsTr("Value:") + SecureStorage.value(key.text)
}
}
//Display retrieved data
Text {
id:retrieveData
anchors.top: retrieveButoon.bottom
The information is being stored however I can not retrieve the information.