How to change or delete icon in title QMessageBox in Qt, python. I have next cod:
msgBox = QtGui.QMessageBox(QtGui.QMessageBox.Information, ' ', 'Completed',
buttons=QtGui.QMessageBox.Yes)
msgBox.setWindowFlags(QtCore.Qt.FramelessWindowHint |
QtCore.Qt.WindowTitleHint)
msgBox.exec_()
When msgBox appear in monitor, no icon and text in title, but on task bar I see the standart icon Windows. it's not beautiful.
You can do it like this:
msgBox.setWindowIcon(QtGui.QIcon('PathToIcon/icon.png'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With