Merge pull request #2998 from shun-iwasawa/fix_camera_capture_on_mac
Fix Black Camera Capture View on MacOS
This commit is contained in:
commit
4927df14a1
1 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue