开发者

Setting window style in PyQT/PySide?

开发者 https://www.devze.com 2023-01-16 19:32 出处:网络
I\'ve been looking for how to do this and I\'ve found places where the subject comes up, but none of the suggestions actually work for me, even though they seem to work out okay for the questioner (th

I've been looking for how to do this and I've found places where the subject comes up, but none of the suggestions actually work for me, even though they seem to work out okay for the questioner (they don't even list what to import). I ran across self.setWindowFlags(Qt.FramelessWindowHint) but it doesn开发者_开发知识库't seem to work regardless of the import I try (QtGui.FramelessWindowHint, QtCore.FramelessWindowHint, etc.).

Any ideas?


u need to import QtCore

so the code will look like this :
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)

whenever you see Qt.something put in mind that they are talking about the Qt class inside QtCore module .

hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号