Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QCamera - Setting resolution of captured preview image using QImageEncoderSettings does not work
Forum Update on Monday, May 27th 2025

QCamera - Setting resolution of captured preview image using QImageEncoderSettings does not work

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 4.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suraj.pavaskar
    wrote on last edited by
    #1

    I am trying to capture images via QCamera API using Qt 4.7.3 & QtMoblity 1.1.1 on Symbian^3 devices - Nokia N8 & E7.
    The default resolution of the captured image (available via signal QCameraImageCapture::imageCaptured(int , const QImage &)) is 640x480.

    I want to capture the images at much higher resolutions (of-course the ones supported by the device camera).
    I tried changing the setting using e.g.:

    viewFinder = new QGraphicsVideoItem();
    viewFinder->setSize(QSizeF(640, 360));

    camera->setViewfinder(m_viewFinder);
    imageCapture = new QCameraImageCapture(camera);

    QImageEncoderSettings imageSettings;
    imageSettings.setCodec("image/jpeg");
    imageSettings.setResolution(1600, 1200);

    imageCapture->setImageSettings(imageSettings);

    However the resulting resolution of the captured image remains unchanged - 640x480.
    Even I tried changing the setting after the camera is in active state, but no luck.

    By any chance the Symbian camera back-end dose not support these settings as yet ?
    Any other way to change the resolution of the captured image (except scaling the captured image) ?

    Any help is much appreciated.
    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      The signal imageCapture() send just a preview image - which obviously is low res. The real photo is send with imageSaved() -- either a disk file or a buffer (if the N8 implementation supports that).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved