Merge pull request #2998 from shun-iwasawa/fix_camera_capture_on_mac

Fix Black Camera Capture View on MacOS
This commit is contained in:
Rodney 2020-01-08 07:43:51 -07:00 committed by GitHub
commit 4927df14a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);