aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 16:11:52 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-02 16:12:04 +0000
commit25180730194bec25f915f32ab846ea583fb1493f (patch)
tree9a73e0336ecf21e085d99d6a651c5547b9eb99f8 /sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst
parent6e3e7b9ca0548430aaa5e2555d6e02c64625fa3f (diff)
Rename PySide2 to PySide6
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst')
-rw-r--r--sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst32
1 files changed, 0 insertions, 32 deletions
diff --git a/sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst b/sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst
deleted file mode 100644
index a9ff38a30..000000000
--- a/sources/pyside2/doc/tutorials/datavisualize/add_mainwindow.rst
+++ /dev/null
@@ -1,32 +0,0 @@
-Chapter 3 - Create an empty QMainWindow
-==========================================
-
-You can now think of presenting your data in a UI. A QMainWindow provides a
-convenient structure for GUI applications, such as a menu bar and status bar.
-The following image shows the layout that QMainWindow offers out-of-the box:
-
-.. image:: images/QMainWindow-layout.png
- :alt: QMainWindow layout
- :align: right
-
-In this case, let your application inherit from QMainWindow, and add the
-following UI elements:
-
-* A "File" menu to open a File dialog.
-* An "Exit" menu close the window.
-* A status message on the status bar when the application starts.
-
-In addition, you can define a fixed size for the window or adjust it based on
-the resolution you currently have. In the following snippet, you will see how
-window size is defined based on available screen width (80%) and height (70%).
-
-.. note:: You can achieve a similar structure using other Qt elements like
- QMenuBar, QWidget, and QStatusBar. Refer the QMainWindow layout for
- guidance.
-
-.. literalinclude:: datavisualize3/main_window.py
- :language: python
- :linenos:
- :lines: 40-
-
-Try running the script to see what output you get with it.