Solved Pyqt5 Qmessagebox
-
HI there, i would like know if it is possible to remove the windows frame from a QMessageBox,
messagebox is as follows
QMessageBox.critical(self, 'An Error Occured', 'OD Cannot be Empty', QMessageBox.Ok)
My application has no windows frame using
self.setWindowFlag(QtCore.Qt.WindowType.FramelessWindowHint)
so I would like to remove it from the QMessageBox, but I do not know how to achieve this.
Thanks
-
@EchoLab You can't do that with static QMessageBox.critical method. But you can create a QMessageBox instance and use setWindowFlag. Of course you will need to configure it to behave same as QMessageBox.critical.
-
@jsulm Thank you for that, I got it now,