pythonqt
pythonqt copied to clipboard
About WId type
能把 qRegisterMetaType<WId >("WId"); 加入 PythonQt::init吗? 现在调用QWindow.fromWinId 提示: PythonQt: Can't create a copy of WId, either use qRegisterMetaType() or add a copy constructor to the decorator/wrapper.
Probably a new method that should be ignored... you can add a method removal to the qtgui xml file and regenerate. Alternatively you can remove the method from the generated wrappers, search for fromWinid in the generated files.
On Thu 30. Jul 2020 at 09:13, bilive [email protected] wrote:
能把 qRegisterMetaType("WId"); 加入 PythonQt::init吗? 现在调用QWindow.fromWinId 提示: PythonQt: Can't create a copy of WId, either use qRegisterMetaType() or add a copy constructor to the decorator/wrapper.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MeVisLab/pythonqt/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKHPHA4342BMFT2LCCB7NLR6EMTHANCNFSM4PNBPYJA .
Thank you .
------------------ 原始邮件 ------------------ 发件人: "MeVisLab/pythonqt" <[email protected]>; 发送时间: 2020年7月30日(星期四) 下午3:32 收件人: "MeVisLab/pythonqt"<[email protected]>; 抄送: "按钮工厂"<[email protected]>;"Author"<[email protected]>; 主题: Re: [MeVisLab/pythonqt] About WId type (#15)
Probably a new method that should be ignored... you can add a method removal to the qtgui xml file and regenerate. Alternatively you can remove the method from the generated wrappers, search for fromWinid in the generated files.
On Thu 30. Jul 2020 at 09:13, bilive <[email protected]> wrote:
> 能把 qRegisterMetaType("WId"); 加入 PythonQt::init吗? > 现在调用QWindow.fromWinId 提示: > PythonQt: Can't create a copy of WId, either use qRegisterMetaType() or > add a copy constructor to the decorator/wrapper. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/MeVisLab/pythonqt/issues/15>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABKHPHA4342BMFT2LCCB7NLR6EMTHANCNFSM4PNBPYJA> > . >
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Please provide a patch if you fixed it.
QWindow.fromWinId()
seems to work fine with current master. Closing.