pythonqt icon indicating copy to clipboard operation
pythonqt copied to clipboard

About WId type

Open icevivi opened this issue 4 years ago • 3 comments

能把 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.

icevivi avatar Jul 30 '20 07:07 icevivi

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 .

florianlink avatar Jul 30 '20 07:07 florianlink

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.

icevivi avatar Jul 31 '20 03:07 icevivi

Please provide a patch if you fixed it.

florianlink avatar Aug 09 '20 12:08 florianlink

QWindow.fromWinId() seems to work fine with current master. Closing.

mrbean-bremen avatar Dec 15 '23 13:12 mrbean-bremen