Skip to content


QtJambi – Disable the X button on a Dialog window (the X on top right corner)

Was looking for a way to hide the X (close) button on the top right of a Qt Dialog, this is the way to do it:

this.setWindowFlags(Qt.WindowType.Window, Qt.WindowType.CustomizeWindowHint, Qt.WindowType.WindowTitleHint);

Posted in Java, Qt. Tagged with , , , .