Hmm, that is indeed not a lot to go on.
Do you need to delete the window?
I.e. it is not being deleted when the user closes it, so I am wondering why you need to delete it when you are closing it from code.
Cheers,
_
Hmm, that is indeed not a lot to go on.
Do you need to delete the window?
I.e. it is not being deleted when the user closes it, so I am wondering why you need to delete it when you are closing it from code.
Cheers,
_
I`m find solution. I`m delete window not after close() are before show()
Qt Code:
if (window != 0) { delete window; window = 0; } window = new QDeclarativeView(); window->show();To copy to clipboard, switch view to plain text mode
you can call delete window even without the check for != 0 first,
Delete is defined to do nothing on a null pointer.
Cheers,
_
Bookmarks