Remove border around QMainWindow (PyQt)

Viewed 362

I have created a frameless window with a border radius in pyqt. However after applying both setWindowFlags(QtCore.Qt.FramelessWindowHint), setAttribute(QtCore.Qt.WA_TranslucentBackground, True) in the constructor, I am left with this border around the window:

border around window

This is the stylesheet for the main window

MainWindow.setStyleSheet("border-radius: 20px;")

Any suggestions on what might be causing this?

0 Answers
Related