[Interest] Problems with QCamera/QML Camera when trying to porting a desktop application to android tablet
René Hansen
renehh at gmail.com
Wed Aug 22 10:46:54 CEST 2018
Hey Roman,
It's hard to see what's wrong without more code.
I've attached a minimal example of how I'd start out a QML based Camera
app, with a full-window preview.
Seems to work the way you intend.
/René
On Wed, 22 Aug 2018 at 10:28 Roman Wüger <roman.wueger at gmx.at> wrote:
> Hi Jason,
>
> my problem is that the QML VideoOutput and the QQuickView is not
> stretched. See attached image
>
> [image: image1.jpeg]
>
> The black background is the QWindow from QWidget::createWindowContainer.
> The blue background is the QQuickView. And the shown video is only a bottom
> right edge of the complete video.
>
>
> I expected that the video fills the complete black are too
>
> Regards
> Roman
>
> Am 20.08.2018 um 18:24 schrieb Jason H <jhihn at gmx.com>:
>
> I use QML and Camera and have had no problem going between android, ios
> and desktop. But I'm not using widgets.
>
>
> *Sent:* Monday, August 20, 2018 at 7:15 AM
> *From:* "Roman Wüger" <roman.wueger at gmx.at>
> *To:* "Qt Project MailingList" <interest at qt-project.org>
> *Subject:* Re: [Interest] Problems with QCamera/QML Camera when trying to
> porting a desktop application to android tablet
>
> No one?
>
> Am 09.08.2018 um 13:05 schrieb Roman Wüger <roman.wueger at gmx.at>:
>
>
>
> Ok it seems to work with Qt 5.11.1 but the preview video is shown in the
> top left corner instead of the complete widget.
>
> Any hints?
>
> Thanks in advance
>
> Am 31.07.2018 um 17:18 schrieb Roman Wüger > <roman.wueger at gmx.at>:
>
>
>
>
> Hello guys,
>
>
>
> I try to port a desktop application to an android tablet. At the moment
> everthing seems to work smoothly except the camera stuff.
>
> Previously QCamera with QCamerViewfinder was used but does not work on
> android, because I read that Qt Multimedia isn’t available on android and
> so I rewrote the entire camera stuff with QML.
>
>
>
> A smaller application with only one dialog for demonstration works well.
> But since the desktop application is multi hierarchical with dialogs,
>
> I whether does not see a video or in the second case the dialog in which
> the camera stuff is implemented is not shown.
>
> This depends on whether I use QQuickView in combination with
> QWidget::createWindowContainer or QQuickWidget.
>
>
>
> I saw the following entries, but the solutions are not working for me:
>
> https://bugreports.qt.io/browse/QTBUG-49328
>
> https://bugreports.qt.io/browse/QTBUG-41467
>
> https://bugreports.qt.io/browse/QTBUG-39454
>
>
>
> I tried Qt 5.9.5 to Qt 5.11.1 on an Samsung Galaxy Tab A (2016) with
> Android 7.0
>
>
>
> I hope someone can help me with the problem.
>
>
>
> Thanks in advance
>
>
>
> Best Regards
>
> Roman
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
> _______________________________________________ Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
> _______________________________________________
> 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/20180822/5ab8f1a0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1.jpeg
Type: image/jpeg
Size: 325986 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180822/5ab8f1a0/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CameraDemo.tar.gz
Type: application/x-gzip
Size: 4135 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180822/5ab8f1a0/attachment.bin>
More information about the Interest
mailing list