The SDI example shows how to create a Single Document Interface. It uses a number of top-level windows to display the contents of different text files.
范例工程 @ code.qt.io