QChildWindowEvent 類包含用於子級窗口改變的事件參數。 更多...
| 頭: |
#include <QChildWindowEvent>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
|
| qmake: |
QT += gui
|
| Since: | Qt 6.7 |
| 繼承: | QEvent |
| QChildWindowEvent (QEvent::Type type , QWindow * childWindow ) | |
| QWindow * | child () const |
子級窗口事件被發送給窗口,當子級被添加 (或移除)。
在這 2 種情況下,隻能依賴的子級是 QWindow — 不是其任何子類。這是因為在 QEvent::ChildWindowAdded case the subclass is not yet fully constructed, and in the QEvent::ChildWindowRemoved 情況下,它可能已被銷毀。
[explicit]
QChildWindowEvent::
QChildWindowEvent
(
QEvent::Type
type
,
QWindow
*
childWindow
)
構造子級窗口事件對象針對特定 type 為 childWindow .
type 可以是 QEvent::ChildWindowAdded or QEvent::ChildWindowRemoved .
另請參閱 child ().
返迴被添加 (或移除) 的子級窗口。