QMessageBox

Other topics

Basic usage: Hello World

app = QApplication( sys.argv )
box = QMessageBox()

# Window Title
box.setWindowTitle( "Hello World." )

# Icon: Information, Warning, Question, Critical
box.setIcon( QMessageBox.Information )

# Short version of the information
box.setText( "Hello World!" )

# Informative text
box.setInformativeText( "Hello World! We are using Qt to display this beautiful dialog to you." )

# Show the messagebox as a modal dialog
box.exec_()

return 0

Contributors

Topic Id: 9806

Example Ids: 30199

This site is not affiliated with any of the contributors.