Ask Your Question

why is createButton not implemented?

asked 2017-01-28 18:47:50 -0600

jp2112 gravatar image

I am using precompiled release 3.2.0 within VSE 2015 and would like to add a button to my window, since I am getting good use out of the trackbars. But when I run my exe it crashes and I get this message written to the console:

OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in cv::createButton, file C:\build\master_winpack-build-win64-vc14\opencv\modules\highgui\src\window.cpp, line 526

Does this mean there is no way for a button to work? Is there a plan to offer a version of OpenCV with the button features working? If not, why? I'm not a hard core programmer so I don't know the process of compiling my own OpenCV installation and I don't have time to deal with that anyhow. Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-01-28 21:16:58 -0600

berak gravatar image

you can only use qt functionality, if you recompile the opencv libs from src with qt libs.

(and no, prebuilt libs will always assume, there's no such thing installed on your box.)

edit flag offensive delete link more


thanks for reply. ok, but what's the harm with the developers compiling OpenCV with the QT libs? else disabled features like createbutton should have a disclaimer in the docs so novice people don't waste time crashing.

jp2112 gravatar imagejp2112 ( 2017-02-03 10:38:04 -0600 )edit

once you compile opencvwith qt, it won't run without, simply. would put a lot of burden on anyone not really using this.

berak gravatar imageberak ( 2017-02-03 10:54:29 -0600 )edit

I guess as a non-developer I don't understand why the trackbars and buttons require different libraries. Seems reasonable that if you use one you'd usually want the other, and while trackbars could be used as binary selectors they take up WAY too much window area (By the way why is this? I see so much wasted space below the bottom trackbar that 2-3 more could easily fit there.) What's so special about buttons anyway that they need their own library? So are trackbars the only gui option for default builds of OpenCV?

jp2112 gravatar imagejp2112 ( 2017-02-03 16:21:23 -0600 )edit

Question Tools

1 follower


Asked: 2017-01-28 18:47:50 -0600

Seen: 2,397 times

Last updated: Jan 28 '17