Quote Originally Posted by wysota View Post
What is this meant to do?
Well, in win api you can handle the WM_CLOSE message and instead of desttroy the window and redraw it again, by pressing the button.

In the form I wanna create a listview and fill it, if I've to redraw it every time, I also have to fill it again, so hide/show is the best solution? I'm used to this in win api, i don't know if there is a better solution in Qt.

So the code should instead of deleting the dialog, hide it. So that edit boxes/listviews remain their value.