how to distroy child window which parents is zero, when exiting from application.
If parent is 0, the new widget becomes a window. then how to distroy explicitly?

in the following examples, how to distroy uartDetachedWidget ?
void UartTab::detachWindow()
{
uartDetachedWidget = new UartWidget(0,m_uartNo, true);
uartDetachedWidget->show();
}