I want to write a simple program to let users create a list of notes.
I've got a QListWidget and a QPlainTextEdit and a button to allow new list items to be added.
Whenever a new item is added, I want to store the 'plain text' associated with the previous item.

Is there as simple way to link a QString pointer to a given QListWidgetItem? Or do I need to create another 'list' (say, an array of QString pointers) and match it to the QListWidget rows (the first item in my array would implicitly be the QString for the first QListWidge row)?