PDA

View Full Version : Concept/Purpose/Use of Persistent Editor



ce_nort
17th December 2015, 19:42
Hello,
I am new to Qt and somewhat new to programming, and I'm having trouble finding any sort of documentation to explain what a persistent editor is and how it should be used. Would anybody be able to help me out either with their own explanation or pointing me to someone else's explanation?

Thanks!

ChrisW67
17th December 2015, 20:21
A persistent editor is a cell in a table view (or similar) that permanently displays an editor widget. Normally an editor widget is only created when a cell is selected and placed into edit mode, and destroyed when cell focus is lost or editing is finished. Persistent editors are the exception not the general rule. You might use a persistent editor widget if the widget is very expensive/slow to create on demand or if one item is always being edited.

ce_nort
17th December 2015, 20:31
Thank you, that was exactly the synopsis I needed.