#include "mainwindow.h" #include #include "cplaywidget.h" #include #include "CameraCapture.h" #include "mainwindow.h" void CameraDataCallback(double ts, BYTE *dat, LONG size){ qDebug()<<"reieve cnt"< names = Camera::EnumAllCamera(); for(auto itr = names.begin();itr != names.end();itr++){ if(gCam->Open(*names.begin()) ){ Camera *gCam = new Camera(*names.begin()); gCam->SetObserver(&gPlayer); qDebug("open success"); }else{ qDebug("open fail"); } qDebug()<