[Interest] QCameraViewfinder & screen orientation changed on iOS

Daniel França daniel.franca at gmail.com
Tue Sep 29 13:00:39 CEST 2015


I'd a problem with orientation using QML VideoOutput, not exactly the same,
but the autoOrientation had some bugs, i.e: Doesn't recognize the Qt
.InvertedPortraitOrientation orientation.
I tried to fix it, instead assigning the angle in the events:

onWidthChanged

onHeightChanged
Maybe it can help you, but for me it didn't work for
Qt.InvertedPortraitOrientation as well.


Em ter, 29 de set de 2015 às 11:37, Igor Mironchik <igor.mironchik at gmail.com>
escreveu:

> Hi guys,
>
> Does anybody have experience with displaying QCameraViewfinder on iOS?
>
> I successfully display it, I see video from camera... But I have one
> problem: when I rotate device my window trying to rotate and stopping in
> the middle of this action. When I click somewhere on this screen then
> layout correctly updates and everything looks correct but I don't
> receive rotation anymore. If I don't display QCameraViewfinder then
> rotation works fine.
>
> Does anybody have experience with this problem?
>
> What can I do?
>
> How can I handle rotation events in Qt?
>
> I tried to connect to QScreen::orientationChanged() and do some
> workarounds but I don't receive this signal... I use
> QGuiApplication::primaryScreen()...
>
> Thank you.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150929/da12cc0e/attachment.html>


More information about the Interest mailing list