PyQt5去除标题栏

def __init__(self, parent = None):
        QMainWindow.__init__(self, parent)

主窗口MainWindow使用setWindowFlags方法。

self.setWindowFlags(QtCore.Qt.CustomizeWindowHint)
发布了34 篇原创文章 · 获赞 54 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_42686768/article/details/90698961