2

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.

Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
luacassus
  • 6,540
  • 2
  • 40
  • 58

1 Answers1

5

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.

The Compiler
  • 11,126
  • 4
  • 40
  • 54
Lukáš Lalinský
  • 40,587
  • 6
  • 104
  • 126