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
精彩评论