PyQt custom widget in c++

2019-04-16 03:12发布

Can I write custom Qt widget in pure C++, compile it and use in PyQt?

I'm trying to use the ctypes-opencv with qt and I have performance problems with python's code for displaying opencv's image in Qt form.

1条回答
再贱就再见
2楼-- · 2019-04-16 03:52

You will have to write a Python wrapper for the widget, using the sip library (which is used by PyQt). There is a simple example for a Qt/C++ widget in the documentation.

查看更多
登录 后发表回答