Added mechanism to set/toggle NORMAL window to TOPMOST window.#14872
Added mechanism to set/toggle NORMAL window to TOPMOST window.#14872alalek merged 2 commits intoopencv:3.4from
Conversation
alalek
left a comment
There was a problem hiding this comment.
Thank you for the contribution!
Unfortunately there is no design decision (and consistency in existed code) about errors handling for U/I functionality (silent/log message/return value or exception) at this moment.
|
To ask for re-review @alalek , what is needed? Also, shall I rebase the commits into a smaller set? |
d91ec9e to
eb72e75
Compare
|
if anyone feels like adding it for Qt too, it's |
|
@AhiyaHiya Regression was reported at https://teratail.com/questions/211380 . The reporter follow the step shown https://www.learnopencv.com/install-opencv-3-4-4-on-macos/ . I don't have macOS env so that I don't know whether this PR actually trigger this error or not. However, according to my investigation shown below, the possibility is high, I think. Defining opencv/cmake/OpenCVFindLibsGUI.cmake Lines 90 to 96 in dc28a1a However, opencv/modules/highgui/CMakeLists.txt Lines 70 to 129 in 0d747da As a result, |
|
@yumetodo I'm not entirely sure if the newly added code, as it is, is causing a linking problem when the Qt option is selected. I'm guessing, this may be a CMake issue for the Build folks to review/research. |
|
@yumetodo , I've been able to reproduce this issue on OSX with Qt. I'll take a look. |
This change adds the ability for the cv created normal window to be TOPMOST, in situations where it is needed for the Window to be above all of the others.
To make a normal window TOPMOST, call cvSetWindowProperty with property WND_PROP_TOPMOST and a non-zero property value. Passing in 0 for the prop_value will make the window TOP.