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. Using QPainter for displaying live camera output

Using QPainter for displaying live camera output

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.0k 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.
  • S Offline
    S Offline
    sulabh
    wrote on last edited by
    #1

    I am just curious if we can use QPainter to display the live camera output. If so can anyone tell me how will be the implementation.
    I already used it with QLabel like this :

    cM2 = new QCamera(this);
    cV2 = new QCameraViewfinder(this);
    cM2->setViewfinder(cV2);
    cBox2 = new QVBoxLayout();
    cBox2->addWidget(cV2);
    ui->label_2->setLayout(cBox2);
    cM2->start();
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Out of curiosity, why do you need that ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Out of curiosity, why do you need that ?

        S Offline
        S Offline
        sulabh
        wrote on last edited by
        #3

        @SGaist I just to rotate the live feed from camera. Also i still didnt get how can i do it using my mentioned code.

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

          Using the code you posted ? You can't.

          You'll likely need to implement your own QAbstractVideoSurface.

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

          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