All the standard features of application main windows are provided by Qt.
Main windows can have pull down menus, tool bars, and dock windows. These separate forms of user input are unified in an integrated action system that also supports keyboard shortcuts and accelerator keys in menu items.
停放 Widget 范例 | The Dock Widgets example shows how to add dock windows to an application. It also shows how to use Qt's rich text engine. |
MDI 范例 | The MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class. |
主窗口 | The Main Window example shows Qt's extensive support for tool bars, dock windows, menus, and other standard application features. |
菜单范例 | The Menus example demonstrates how menus can be used in a main window application. |
Qt Widgets - 应用程序范例 | The Application example shows how to implement a standard widget application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit. |
SDI 范例 | 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. |