Are all Qt New functions available for Python?

asked May 28 '15

I'm able to work with trackbars in Python, but I don't see buttons available such as for doing a cv2.createButton(). Has this only been implemented for the C++ API? I guess I could hack a button with a trackbar, but it's not the same.

Preview: (hide)

Comments

currently, the qt related functions are not exposed to python.

(it's a bit difficult, there are callbacks and weird pointers involved, so the automatic wrapper script can't handle it)

(alternatively to the trackbar idea, you could draw a rect to the screen, and use a moushandler to check for clicks there;)

berak gravatar imageberak (May 28 '15)edit

Thanks for the answer and the cool tip!

opencvslave gravatar imageopencvslave (May 29 '15)edit