diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-06-27 15:47:10 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-07-13 19:14:21 +0200 |
| commit | 4ed257c5e476ab82b1e66c15574a4ebb016d179e (patch) | |
| tree | 691e612537b59989757545841fbe309627d73584 /examples/demos/documentviewer/doc/mainwindow.py.rstinc | |
| parent | b08cb33e0a46a490821a011a7433cb846da2acad (diff) | |
Port the document viewer example
Task-number: PYSIDE-2206
Change-Id: Ia01043b4f9510319e5a751ee3bf1520dcec90f20
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/demos/documentviewer/doc/mainwindow.py.rstinc')
| -rw-r--r-- | examples/demos/documentviewer/doc/mainwindow.py.rstinc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/demos/documentviewer/doc/mainwindow.py.rstinc b/examples/demos/documentviewer/doc/mainwindow.py.rstinc new file mode 100644 index 000000000..976443ceb --- /dev/null +++ b/examples/demos/documentviewer/doc/mainwindow.py.rstinc @@ -0,0 +1,11 @@ +The ``MainWindow`` class provides an application screen with menus, actions, +and a toolbar. It can open a file, automatically detecting its content type. It +also maintains a list of previously opened files, using ``QSettings`` to store +and reload settings when launched. The ``MainWindow`` creates a suitable viewer +for the opened file, based on its content type, and provides support for +printing a document. + +``MainWindow's`` constructor initializes the user interface created in Qt +Designer. The ``mainwindow.ui`` file provides a ``QTabWidget`` on the left, +showing bookmarks and thumbnails. On the right, there is a ``QScrollArea`` for +viewing file content. |
