[PyQt] QML QtMultimedia Bug(?) on Ubuntu

Robert Kent rob at gulon.co.uk
Tue Oct 4 13:49:08 BST 2016


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

    }

}

 

Cheers, Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161004/7c12d975/attachment.html>


More information about the PyQt mailing list