From 0a268da4267cde8ef4d715d70bff490494a94c4c Mon Sep 17 00:00:00 2001 From: zccrs Date: Fri, 3 Jan 2020 19:49:52 +0800 Subject: [PATCH] fix: d'not show widget to native window --- plugins/tray/fashiontray/fashiontraywidgetwrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tray/fashiontray/fashiontraywidgetwrapper.cpp b/plugins/tray/fashiontray/fashiontraywidgetwrapper.cpp index 6df7b321d..30e471722 100644 --- a/plugins/tray/fashiontray/fashiontraywidgetwrapper.cpp +++ b/plugins/tray/fashiontray/fashiontraywidgetwrapper.cpp @@ -51,8 +51,6 @@ FashionTrayWidgetWrapper::FashionTrayWidgetWrapper(const QString &itemKey, Abstr setStyleSheet("background: transparent;"); setAcceptDrops(true); - m_absTrayWidget->setVisible(true); - m_layout->setSpacing(0); m_layout->setMargin(0); m_layout->setContentsMargins(0, 0, 0, 0); @@ -65,6 +63,8 @@ FashionTrayWidgetWrapper::FashionTrayWidgetWrapper(const QString &itemKey, Abstr connect(m_absTrayWidget, &AbstractTrayWidget::clicked, this, &FashionTrayWidgetWrapper::onTrayWidgetClicked); setMinimumSize(PLUGIN_BACKGROUND_MIN_SIZE, PLUGIN_BACKGROUND_MIN_SIZE); + + m_absTrayWidget->show(); } QPointer FashionTrayWidgetWrapper::absTrayWidget() const