macOS: Embedded QWindow

Demonstrates embedding a QWindow into an view hierarchy of a macOS application.

This macOS-specific example shows how to create a view hierarchy containing a QWindow , with handling of Qt's mouse and keyboard events.

运行范例

要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 。更多信息,拜访 构建和运行范例 .

范例工程 @ code.qt.io

另请参阅 Qt for macOS and Qt Mac Extras .