Congratulations to our 2022 Qt Champions!

QCamera resolution selection

  • I'm having some problems using QCamera on a Microsoft Surface 3 Pro running Win8.1. I can connect to either camera (front or rear) and capture without any problems.

    However, the front camera comes up at 1920x1080, but the rear camera is 640x480. I cannot seem to change this.

    I've tried changing the resolution using the QImageEncoderSettings:

    QImageEncoderSettings imageSettings;

    This makes no difference. When I try to get supported resolutions or codecs, both return empty lists.

    I know the camera is capable of better. It's spec'd the same as the front camera, I believe, and when I use the system Camera software it is far higher resolution.

    How do I get the camera to switch to a higher resolution?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Qt are you currently using ?

  • Thanks!

    I'm using Qt 5.4

  • Lifetime Qt Champion

    Visual Studio or MinGW ?

  • Visual Studio 2013. I'm building against the VS2013 64bit OpenGL libraries (msvc2013_64_opengl).

Log in to reply