Hide Forgot
Please build opencv with qt support. I've built and tested QT support, all samples works fine. https://koji.fedoraproject.org/koji/taskinfo?taskID=3781407 Just replace gtk2-devel with qt-devel and add -DWITH_QT=ON to cmake options. I think best way is create 2 packages opencv-qt and opencv-gtk which conflict and provide opencv package.
Can you list which files use qt and which ones use gtk when both are compiled ? The primary usage of opencv is as a library so i don't mind having the gui part subpackaged as a -samples (or something else) that would requires both qt and gtk.
For example /usr/share/include/highgui.c consists links both to QT and GTK functions. I compiled opencvada some days ago and I had got broken undefined references: undefined reference to `cvAddText' undefined reference to `cvCreateButton' undefined reference to `cvFontQt' undefined reference to `cvCreateOpenGLCallback' undefined reference to `cvDisplayStatusBar' undefined reference to `cvSaveWindowParameters' undefined reference to `cvDisplayOverlay' undefined reference to `cvLoadWindowParameters' But it is not opencvada related bug because OpenCV with QT support contains this references.
You are not answering my question.. Again. If it's all about examples, those can be in a separate -examples package using both GTK/QT. But it don't think it even worth to build them. If this have anything to deal with core libraries, this will be another game as we may enable opencv in ffmpeg which tried to remain Xless. So again my question is which binaries use qt and which ones use gtk ?