NSButton over QTCaptureView
-
27-10-2019 - |
Question
Is there any way to put NSButton object over QTCaptureView? I have done following,
- In interface builder, added a QTCaptureView,
- Added a button on top of QTCaptureView and it's allowing to do so.
When i launch the application, I can see the button over the QTCaptureView but when I start the Camera which will show the Preview in the QTCaptureView session, button is overriding by QTCaptureView.
Any idea what i am doing wrong ?
Basically I need to implement a Control which shows QTCaptureView and a Button over it; when user presses the button then I need to Launch the NSImageView over the QTCaptureView.
Solution
Enable layers (-setWantsLayer:YES or turn it on in Interface Builder) on the view containing your capture view.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow