I would like to hide the title bar of the mainWindow (as shown in the figure below). Thus, I have tried the code below, But the mainWindow itself closed.
Could I get solution about this ?
flags = qt.Qt.FramelessWindowHint
main = slicer.util.mainWindow()
main.setWindowFlags(flags)