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. QCamera streaming is not starting in mac 10.8.5

QCamera streaming is not starting in mac 10.8.5

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

    Hello All,
    I am creating an application in QT, And I have functionality to stream USB camera, I am able to see streaming in mac os version on 10.9.x and above, but I am not able to view streaming in 10.8.5

    here is my code for streaming

    void CameraManager::setCamera(const QCameraInfo &cameraInfo)
    {
      delete m_camera;
      m_camera = new QCamera(cameraInfo);
     if(m_camera)
     {
        m_isConnected = true;
        m_camera->setViewfinder(m_cameraView);
        m_camera->load();
    
       connect(m_camera, SIGNAL(error(QCamera::Error)), this, SLOT(displayCameraError()));
    
       //qDebug()<<" Resolution : "<< m_camera->supportedViewfinderResolutions();
      delete m_finderSettings;
     m_finderSettings = new QCameraViewfinderSettings();
    
      if(m_finderSettings)
      {
           // Set default camera Resolution
          m_finderSettings->setResolution(DEFAULT_RESOLUTION);
          m_camera->setViewfinderSettings(*m_finderSettings);
          m_camera->start();
      }
    }
    

    can anyone let me know what I am doing wrong.

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

      Hi and welcome to devnet,

      Which version of Qt are you using ?

      What device are you trying to access ?

      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