OpenCV 3.0.0:如何在 Ubuntu 14.04 中的 window 顶部显示轨迹栏

OpenCV 3.0.0: How to display trackbar at top of window in Ubuntu 14.04

我正在按照本教程制作可拖动的轨迹栏,但是轨迹栏只出现在 window 的底部,我找不到更改选项那种行为。在教程中,他们清楚地在图的顶部显示了轨迹栏。

http://docs.opencv.org/doc/tutorials/highgui/trackbar/trackbar.html

我想这可能是 "figure viewer" Ubuntu 使用引起的问题,但是 有什么方法可以让它出现在顶部吗?

你不能那样做! OpenCV GUI 功能仅用于构建快速原型。要构建更高级的 GUI,您需要使用像 Qt 这样的第三方库。

不久前我写了这个simple Qt/OpenCV application to load an image with OpenCV and display it on a QMainWindow. By the way, Qt's trackbar name is QSlider