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. How can I rotate QCameraViewFinder to 90 degree

How can I rotate QCameraViewFinder to 90 degree

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 888 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.
  • R Offline
    R Offline
    Roser
    wrote on last edited by
    #1

    I'm using USB camera,but the orientation is not what I'm wanted,it's horizontal,I need it be vertical.
    So I turn the USB camera to 90 degree,but the video stream was follow the camera to 90 degree.
    Then I need rotate the QCameraViewFinder to 90 degree to fix it.
    But I can't find a way to do it.
    How can I do it?

    I don't need the way of use QGraphicsView,cause it have something wrong in TabWidget,I have tried it.

    This is the current videofinder:
    e1ac5f06-88d8-4fe7-9254-bf6ecbc7095b-图片.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I am not sure there's a direct way to do that within Qt.

      One possible solution could be to create your own QAbstractVideoSurface and do the conversion there.

      See also the Camera Overview in Qt's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        I am not sure there's a direct way to do that within Qt.

        One possible solution could be to create your own QAbstractVideoSurface and do the conversion there.

        See also the Camera Overview in Qt's documentation.

        R Offline
        R Offline
        Roser
        wrote on last edited by
        #3

        @SGaist Ok, thanks.

        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