Our next customization is to add an about box to our application. An about box is a dialog box that displays credits and revision information about the application. It may also include installed version and copyright information. The
QMessageBox class provides a built-in function for this. It has the following signature:
PySide.QtGui.QMessageBox.about(parent, title, text)
The parent parameter takes any valid
QWidget object. The title and text can be supplied with the Unicode parameter. The about box will have a single button labeled OK. To explain its working, we will now add a button named About and on click signal of that button we call a slot which will display the About box to the user. The code for the same is as follows:
def setAboutButton(self): ...