It works fine, as long as the enum is registered with Q_ENUMS and defined inside a class registered with the QML engine. Here's a small example: example.py ...
確定! 回上一頁