QHideEvent Class
The QHideEvent class provides an event which is sent after a widget is hidden. More...
| Header: | #include <QHideEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Inherits: | QEvent |
- List of all members, including inherited members
- QHideEvent is part of Event Classes.
Public Functions
Protected Functions
| QHideEvent(QHideEvent &&) | |
| QHideEvent & | operator=(QHideEvent &&) |
| QHideEvent & | operator=(const QHideEvent &other) |
Detailed Description
This event is sent just before QWidget::hide() returns, and also when a top-level window has been hidden (iconified) by the user.
If spontaneous() is true, the event originated outside the application. In this case, the user hid the window using the window manager controls, either by iconifying the window or by switching to another virtual desktop where the window is not visible. The window will become hidden but not withdrawn. If the window was iconified, QWidget::isMinimized() returns true.
See also QShowEvent.
Member Function Documentation
QHideEvent::QHideEvent()
Constructs a QHideEvent.
[protected delete] QHideEvent::QHideEvent(QHideEvent &&)
Move-constructs an instance of QHideEvent. This function is deleted.
[protected delete] QHideEvent &QHideEvent::operator=(QHideEvent &&)
Move-assigns other to this QHideEvent instance. This function is deleted.
[noexcept protected default] QHideEvent &QHideEvent::operator=(const QHideEvent &other)
Copy-assigns other to this QHideEvent instance.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.