[Interest] Problem with QCameraImageCapture
Igor Mironchik
igor.mironchik at gmail.com
Mon Apr 6 10:40:59 CEST 2015
Hi.
I've checked it on two different cameras. The problem is not gone.
I'm on Windows 7 64 bit, Qt 5.4.1 from online installer.
On Mon, 06 Apr 2015 10:20:51 +0300, Igor Mironchik
<igor.mironchik at gmail.com> wrote:
> Hi.
>
> I have one problem QCameraImageCapture doesn't emits signals. What is
> the problem?
>
> d->camera = new QCamera(
> AppCfg::instance().cfg().cameraName().toLatin1(),
> this );
> d->camera->setCaptureMode( QCamera::CaptureStillImage );
> d->camera->start();
>
> connect( d->camera, &QCamera::locked,
> this, &CameraScreen::cameraLocked );
>
> d->capture = new QCameraImageCapture( d->camera, this );
> d->capture->setCaptureDestination( QCameraImageCapture::CaptureToBuffer
> );
>
> connect( d->capture, &QCameraImageCapture::imageAvailable,
> this, &CameraScreen::imageAvailable );
>
> void ( QCameraImageCapture::*signal )( int, QCameraImageCapture::Error,
> const QString & ) = &QCameraImageCapture::error;
>
> connect( d->capture, signal,
> this, &CameraScreen::error );
>
> d->camera->searchAndLock();
>
> ---------------------------------------------
>
> void
> CameraScreen::cameraLocked()
> {
> d->capture->capture();
>
> d->camera->unlock();
> }
>
> But I don't receive nor imageAvailable() nor error() signals...
>
--
Best Regards,
Igor Mironchik.
More information about the Interest
mailing list