I am training on Qt, and playing with different elements. Right now, I have a ListView whose model comes from a C++ backend, using setContextProperty on a QVariant::fromValue applied to a QList. That list is refreshed somewhat randomly, elements come and go.
On clicking an element, my delegate opens a dialog, providing more information, action buttons etc... to apply to that element. This works fine, except that any model update closes that dialog, as the whole list gets refreshed.
Is there a way to set aside the element I'm looking at in the QML side (knowing that the model update can delete this element from my list at any time), to have the time I need to inspect it and interact with the dialog box?