diff options
Diffstat (limited to 'sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst')
-rw-r--r-- | sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst b/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst index 720918008..f658640bf 100644 --- a/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst +++ b/sources/pyside6/doc/tutorials/datavisualize/add_tableview.rst @@ -19,7 +19,7 @@ you can use a QAbstractTableModel instance. However, it's less flexible than a QTableView, as QTableWidget cannot be used with just any data. For more insight about Qt's model-view framework, refer to the - `Model View Programming <http://doc.qt.io/qt-5/model-view-programming.html>` + `Model View Programming <https://doc.qt.io/qt-5/model-view-programming.html>` documentation. Implementing the model for your QTableView, allows you to: @@ -39,7 +39,7 @@ Here is a script that implements the CustomTableModel: .. literalinclude:: datavisualize4/table_model.py :language: python :linenos: - :lines: 40- + :lines: 3- Now, create a QWidget that has a QTableView, and connect it to your CustomTableModel. @@ -48,7 +48,7 @@ CustomTableModel. :language: python :linenos: :emphasize-lines: 12-17 - :lines: 40- + :lines: 3- You also need minor changes to the :code:`main_window.py` and :code:`main.py` from chapter 3 to include the Widget inside the @@ -59,12 +59,12 @@ In the following snippets you'll see those changes highlighted: .. literalinclude:: datavisualize4/main_window.py :language: python :linenos: - :lines: 40- + :lines: 3- :emphasize-lines: 8,11 .. literalinclude:: datavisualize4/main.py :language: python :linenos: - :lines: 40- + :lines: 3- :emphasize-lines: 46-47 |