开发者

style sheet remove border of window

开发者 https://www.devze.com 2023-02-12 22:11 出处:网络
is it possible to remove border of window using \"style sheet\" in qt designe开发者_如何学编程r ?

is it possible to remove border of window using "style sheet" in qt designe开发者_如何学编程r ?

i have to remove it within qt designer, and i dont want to convert it into python.


The easiest way to control your window border would be setting window flags parameter in the constructor, smth like this:

class MainWindow(QtGui.QMainWindow):
    def __init__(self, parent = None):
        super(MainWindow, self).__init__(parent, QtCore.Qt.FramelessWindowHint)

or call:

your_window.setWindowFlags(QtCore.Qt.CustomizeWindowHint)

for your window anywhere in the code.

hope this helps, regards

0

精彩评论

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