Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Changing camera orientation in Qt 6.4.3
Forum Update on Monday, May 27th 2025

Changing camera orientation in Qt 6.4.3

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 109 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.
  • M Offline
    M Offline
    Makson_cheg
    wrote on last edited by Makson_cheg
    #1

    When i start camera in QVideoWidget, orientation of the camera always have landscape orientation, and viewfinder have wrong aspect ratio. How to set camera orientation to portrait?
    This is my code:

        camera = new QCamera(QCameraDevice::BackFace);
        captureSession.setCamera(camera);
        captureSession.setVideoOutput(ui->widget);
        ui->widget->show();
        camera->start();
    
    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