fix camera capture on mac

This commit is contained in:
shun-iwasawa 2020-01-08 22:01:19 +09:00
parent bf25486844
commit 03604dac6b

View file

@ -602,14 +602,6 @@ MyVideoWidget::MyVideoWidget(QWidget* parent)
, m_upsideDown(false)
, m_countDownTime(0)
, m_subCameraRect(QRect()) {
setAutoFillBackground(false);
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_PaintOnScreen, true);
QPalette palette = this->palette();
palette.setColor(QPalette::Background, Qt::black);
setPalette(palette);
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
m_surface = new MyVideoSurface(this);