QDialog is used to create dialog windows. It provides three main display methods `open()`, `exec()`, and `show()`. This article will analyze the QDialog source code to deeply understand the differences between these methods and their appropriate use cases.