The MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class.
Example project @ code.qt.io