Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 主窗口没有阴影 #897

Open
shiyueGG opened this issue Jun 18, 2024 · 1 comment
Open

[Bug]: 主窗口没有阴影 #897

shiyueGG opened this issue Jun 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shiyueGG
Copy link

What happened?

在官方的demo是有阴影的,我创建之后没有。是需要自己加吗?

image

image

Operation System

Win11

Python Version

3.10.8

PyQt/PySide Version

pyside6 6.7.1

PyQt/PySide-Fluent-Widgets Version

pyside6 6.7.1

How to Reproduce?

Minimum code

@shiyueGG shiyueGG added the bug Something isn't working label Jun 18, 2024
@shiyueGG
Copy link
Author

原因是初始化了下面这段代码 这是什么原因
`class webWidget(QFrame):
def init(self, parent=None):
super().init(parent=parent)

    # 1. 将 QWebEngineView 替换成 FramelessWebEngineView
    self.webView = FramelessWebEngineView(self)
    self.webView.load(QUrl("https://www.baidu.com/"))

    self.vBoxLayout = QVBoxLayout(self)
    self.vBoxLayout.setContentsMargins(20, 20, 20, 20)
    self.vBoxLayout.addWidget(self.webView)
    self.setObjectName("homeInterface--web")`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant