QMessageBox is a Qt class that provides a modal window for informing the user or asking for a simple input (like yes/no).