Moving the opencv window on top Qt(c++) dialogs/widgets
-
Thanks for the reply.
I am using the show() option (by newing the dialog). But still i am not able to get the two image windows to the foreground. The two image windows("source" and "center") are from opencv (cv::namedWindow) .
Will i face any problem if i use qt for developing GUI and opencv for image processing operations? (I read on the internet that qt and opencv run on different threads. Is this true?)
-
@demonferrari
Hi
Can you try with
http://doc.qt.io/qt-5/qwidget.html#raise
since you are using show() it sounds ok.Hmm are you saying those are openCV windows?
-
@demonferrari
ok, are those made with Qt or native windows ?
It seems to be native windows and as such, they know nothing
about Qt widgetstack/order.
They do talk about Qt at their site.Normally people use the output in Qt windows/widgets
https://stackoverflow.com/questions/14729417/open-webcamera-with-opencv-and-show-it-with-qlabel-white-window/14729778#14729778You might be able to wrap the CV window in
http://doc.qt.io/qt-5/qwindow.html#details
so they become part of the Qt system.Update:
Are CV windows actually Qt powered ? -
@demonferrari
Ok, should just work then.
Are you giving them a parent ?
Did raise have any effect ? -
@demonferrari
ok, hard to tell whats up with those.
maybe look in the CV source to see what flags are used to create them.
Also if you are giving the QDialog parents (like dialog where u open second),
they might stay over those etc.Sorry, i cant provide more direct tips.- I dont know CV windows.
-
@demonferrari
well at least check out what flags are used to create them.