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. [SOLVED]Portrait camera representation in portrait mode
Qt 6.11 is out! See what's new in the release blog

[SOLVED]Portrait camera representation in portrait mode

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 2.9k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CMGeorge
    wrote on last edited by
    #1

    Has someone managed how to display QCamera in a Portrait mode, as portrait not as landscape (3/4, 9/16), also without image rotation?
    I fight with this for weeks, but without any success.

    thank you.

    iOS & Qt Developer
    Happy Qt-ing

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CMGeorge
      wrote on last edited by
      #2

      Case solved.
      The solution is... print the QCamera to a widget.
      Add the orientation support to that QWidget.
      In the parent, create a slot that call the setOrientation() method to the created QCamera widget, with setting landscape to the orientation.

      in the main window (QCamera Widget parent) add a timer that call the slot form main parent (created early to set the the orientation to QCamera user widget.

      Example: http://developer.qt.nokia.com/wiki/Present_QCamera_in_portrait_mode_as_in_landscape_view

      iOS & Qt Developer
      Happy Qt-ing

      1 Reply Last reply
      0
      • W Offline
        W Offline
        witsku
        wrote on last edited by
        #3

        If this is on Symbian;
        You can set video capture mode and use a capture resolution that has the same aspect ratio as the display.
        E.g. 368x640 for current Symbian^3 devices.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vesat
          wrote on last edited by
          #4

          Hi CMGeorge, others,
          I've been trying to achieve the same thing, but no success so far. For some reason your example link does not show anything. Can you post the example again, or share it here?

          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