Replacing Windows DestroyWindow call
-
Is replacing DestroyWindow as simple as using 'delete'? Using cpp
-
@joeydonovan4 said:
Is replacing DestroyWindow as simple as using 'delete'? Using cpp
What do you mean???
DestroyWindow
is not a Qt function; what do you need? -
DestroyWindow is a Windows function. How do I replace it using Qt or just c++
-
If you want, you can call Windows API.
IMO this kind of questions is wrong. You have to understand how Qt works and then design your application to use correctly the Qt API. You should use Native API only for features not provided by Qt
-
QWidgets are C++ classes which hides system specific api.
If you want QWidget* to be deleted and you created instance with operator new you call delete w.
As for any C++ type this will destroy instance (and window if any was shown)If you want just to hyide widget you can call hide().
-
Hi,
Depending on where you would do that, deleteLater() would be more adequate