[PyQt] QML QtMultimedia Bug(?) on Ubuntu
Phil Thompson
phil at riverbankcomputing.com
Tue Oct 4 13:54:28 BST 2016
On 4 Oct 2016, at 1:49 pm, Robert Kent <rob at gulon.co.uk> wrote:
>
> Hi Phil,
>
> A colleague of mine is trying to use the QtQuick Multimedia module (import QtMultimedia 5.6) on Ubuntu having installed PyQt5 via pip. The application fails on this import complaining that libQt5MultimediaQuick_p.so cannot be found and, sure enough, it doesn’t seem to be there. We’ve tried upgrading via ‘pip install –U pyqt5’ with no change/improvement. Any suggestions? The basic example is as follows:
>
> import QtQuick 2.6
> import QtMultimedia 5.6
>
> Item {
> width: 640
> height: 360
>
> Camera {
> id: camera
>
> imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
>
> exposure {
> exposureCompensation: -1.0
> exposureMode: Camera.ExposurePortrait
> }
>
> flash.mode: Camera.FlashRedEyeReduction
>
> imageCapture {
> onImageCaptured: {
> photoPreview.source = preview // Show the preview in an Image
> }
> }
> }
>
> VideoOutput {
> source: camera
> anchors.fill: parent
> focus : visible // to receive focus and capture key events when visible
> }
>
> Image {
> id: photoPreview
> }
> }
You'll need to copy the missing files from a Qt installation.
Phil
More information about the PyQt
mailing list