Comments (3)
In qframelesswindow/windows/__init__.py
, you can replace AcrylicWindow
with the following code:
class AcrylicWindow(WindowsFramelessWindow):
""" A frameless window with acrylic effect """
def __init__(self, parent=None):
super().__init__(parent=parent)
self.__closedByKey = False
QtWin.enableBlurBehindWindow(self)
self.setWindowFlags(Qt.FramelessWindowHint |
Qt.WindowMinMaxButtonsHint)
self.windowEffect.addWindowAnimation(self.winId())
if "Windows-7" in platform():
self.windowEffect.addShadowEffect(self.winId())
self.windowEffect.setAeroEffect(self.winId())
else:
self.windowEffect.setAcrylicEffect(self.winId())
if sys.getwindowsversion().build >= 22000:
self.windowEffect.addShadowEffect(self.winId())
# self.setStyleSheet("background:transparent")
self.setAttribute(Qt.WA_TranslucentBackground)
from pyqt-frameless-window.
@Cowski0
Or you can simply add self.setAttribute(Qt.WA_TranslucentBackground)
to MainWindow.__init__()
from pyqt-frameless-window.
@Cowski0 Or you can simply add
self.setAttribute(Qt.WA_TranslucentBackground)
toMainWindow.__init__()
Oh thanks :)
from pyqt-frameless-window.
Related Issues (20)
- 多次调用WindowsFramelessWindowBase的setTitleBar,会导致出现多个最小化/最大化/退出的标题按钮 HOT 2
- 窗口移动事件在wayland下无法正常工作 HOT 3
- [BUG] 系统设置中开启“在标题栏和窗口边框上显示强调色”后,会导致窗口顶部出现异色横条 HOT 2
- Does this library provide a dark mode feature for a frameless window? HOT 1
- window draged bug HOT 1
- 使用MobaXterm打开窗口,窗口无法移动或者最大化最小化 HOT 2
- 修改背景为暗色后,窗口从隐藏状态切换为显示状态会出现白色闪屏现象 HOT 1
- window maximize is not correct
- [BUG] PyQt5-Fameless-Window 0.3.4 及以后的版本,FluentWindow 无法通过拖拽右侧边缘改变窗口大小 HOT 1
- Win10 亚克力窗口会卡,现在有部分方法可以解决,请验证一下 HOT 1
- Exception is thrown from __init__ of WindowsFramelessWindowsBase if multiple inheritance is used in a sub-class HOT 3
- [Bug]: Window cannot maximize as expected when system taskbar is not on the bottom. HOT 3
- 简中自述文件(已提交拉取请求无回应,先将中文文档贴在议题里) HOT 1
- 窗口关闭后显示在通知栏图标,然后再恢复窗口时,窗口边框消失,阴影消失,无法通过边框缩放窗口。 HOT 5
- 在窗口中嵌入QWebEngineView之后,窗口边框消失,阴影消失。 HOT 1
- 动态加载ui文件怎么使用无边框窗口 HOT 5
- 反馈一个小bug:始终在默认路径下建立存储文件。 HOT 3
- Optimizing UI Design: Harnessing Frameless Windows in PySide 6 with Qt Designer for Compiled UI HOT 5
- PySide2版本最右侧依然存在死区 HOT 5
- 希望窗口缩放区域判定和系统保持一致 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyqt-frameless-window.