Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何在 C++ 中创建自定义 QML 项。为此,我应该从 QQuickPaintedItem 继承我的类。我的班级将是 Item 的后代。
但是如何在 C++ 中创建自定义 QML 弹出窗口?Popup 不继承 Item。它继承了 QtObject。也许有一些特殊的类可以创建像 QQuickPaintedItem 这样的自定义 QML 弹出窗口?或者也许还有另一种方法可以在 C++ 中创建自定义弹出窗口?