luacassus
luacassus

Reputation: 6720

PyQt custom widget in c++

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.

Upvotes: 2

Views: 2508

Answers (1)

Lukáš Lalinský
Lukáš Lalinský

Reputation: 41306

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.

Upvotes: 6

Related Questions