How to get Qt buttons for controlling OpenCV?

asked 2017-10-15 02:40:10 -0600

Martian gravatar image

updated 2017-10-15 02:40:48 -0600

From my understanding, there is no way to use pushbuttons when using OpenCV's built-in Qt functions. I'm new to OpenCV so perhaps I'm overlooking something. How is this normally done?

edit retag flag offensive close merge delete

Comments

no idea, what a pushbutton might be, but you're limited to this

berak gravatar imageberak ( 2017-10-15 02:59:05 -0600 )edit

Thanks for the link, berak. There is indeed a pushbutton listed at the top of 'new functions' at that link:

cv::createButton (const String &bar_name, ButtonCallback on_change, void *userdata=0, int type=QT_PUSH_BUTTON, bool

But it says that it adds to the 'control panel.' I believe that is relevant only to the so-called "Qt back end' (when USE_QT is enabled during the OpenCV build). I was not able to get that build to work, so I'm limited to the widgets that are built into the stock OpenCV Qt set.

Martian gravatar imageMartian ( 2017-10-15 13:14:22 -0600 )edit