Qt basic dialog and documentation for implementing each function