Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Keeping data after a PtList widget is destroyed
Ref. No. QNX.000009924
Category(ies) Development
Issue Is there any way to keep the information in a PtList widget after the parent window is closed and the PtList widget is destroyed?
Solution After the widget has been destroyed, it does not exist. There is no way to keep information in a widget that does not exist.

In order to keep the list in the widget, the widget has to be prevented from being destroyed. For example, unrealizing it and re-parent it to the main window, and then re-parent it back when the dialog gets created again. But it is a better way to have a copy of the list in a separate array.