Are all Qt New functions available for Python?

asked 2015-05-27 21:02:25 -0600

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.

edit retag flag offensive close merge delete

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 ( 2015-05-28 00:17:05 -0600 )edit

Thanks for the answer and the cool tip!

opencvslave gravatar imageopencvslave ( 2015-05-29 13:04:10 -0600 )edit