From 218ce506e21945c8d3ecc7a9bab1fd0e9e36391c Mon Sep 17 00:00:00 2001 From: shaojun Date: Thu, 26 Sep 2019 14:05:58 +0800 Subject: [PATCH] fixed(appitem):remove background when app open --- frame/item/components/appswingeffectbuilder.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frame/item/components/appswingeffectbuilder.h b/frame/item/components/appswingeffectbuilder.h index 0f4696468..2fb0f2bcb 100644 --- a/frame/item/components/appswingeffectbuilder.h +++ b/frame/item/components/appswingeffectbuilder.h @@ -71,6 +71,9 @@ static QPair SwingEffect( QWidget *parent, const QPixmap &icon, const QRect & rect, const qreal devicePixelRatio) { QGraphicsView *swingEffectView = new QGraphicsView(parent); + swingEffectView->viewport()->setAutoFillBackground(false); + swingEffectView->setFrameShape(QFrame::NoFrame); + QGraphicsScene *itemScene = new QGraphicsScene(parent); QGraphicsItemAnimation *itemAnimation = new QGraphicsItemAnimation(parent);