From 03c2a26820691493f5ebe86f64e0e360b0561642 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周六, 23 12月 2023 17:20:31 +0800 Subject: [PATCH] fix demo acrylic --- examples/mainwindow/mainwindow.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/examples/mainwindow/mainwindow.cpp b/examples/mainwindow/mainwindow.cpp index 86420ac..8c224f3 100644 --- a/examples/mainwindow/mainwindow.cpp +++ b/examples/mainwindow/mainwindow.cpp @@ -153,8 +153,7 @@ auto acrylicAction = new QAction(tr("Enable acrylic material"), menuBar); acrylicAction->setCheckable(true); connect(acrylicAction, &QAction::triggered, this, [this](bool checked) { - if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"), - QColor::fromRgbF(1.f, 1.f, 1.f, 0.6f))) { + if (!windowAgent->setWindowAttribute(QStringLiteral("acrylic-material"), true)) { return; } setProperty("custom-style", checked); -- Gitblit v1.9.1