aboutsummaryrefslogtreecommitdiffstats
path: root/examples/demos/documentviewer/doc/mainwindow.py.rstinc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demos/documentviewer/doc/mainwindow.py.rstinc')
-rw-r--r--examples/demos/documentviewer/doc/mainwindow.py.rstinc11
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.