Difference between hide, close and show in qt
Unsolved
General and Desktop
-
@mit_cruze said in Difference between hide, close and show in qt:
What is the difference between hide,close and show of pushbutton or any widget in terms of memory?
in terms of memory? nothing, since it just marks it at visible/hidden.
Of course the process of painting (objects used for drawing, style, ...) in case it is visible needs resources. Actually like any other operation the application does.Which is better if I don't want to use widget again?
when you do not need it again, you should delete it and release all resources.
-
@raven-worx said in Difference between hide, close and show in qt:
when you do not need it again, you should delete it and release all resources.
to make it clear, this means calling
deleteLater()
. -
thanks @raven-worx