PyQt5 QTreeWidget tutorial: Load data, organize tree, access elements and parents [Tree Widget]

preview_player
Показать описание
Learn how to use a Tree Widget, or QTreeWidget with Python PyQt5. Display hierarchical data in your Tree Widget. Format and resize your Tree Widget. Work with the QTreeWidgetItem objects. Access QTreeWidget child and parent items.

In this video, you will:
-Work with PyQt5 and QtDesigner
-Use QTreeWidget or PyQt5 Tree Widget
-Display data in the tree widget
-Format QTreeWidget
-Resize Tree Widget
-Create QTreeWidgetItem
-Add QTreeWidgetItem
-Get parent for QTreeWidgetItem
-Add children for QTreeWidgetItem
-Select and access QTreeWidgetItem

For more info:

For suggestions or comments:

*************
**Tags**
PyQt5
PyQt5 tutorial
PyQt5 module
PyQt5 Designer
QtDesigner
Qt GUI tutorial
QTreeWidget
PyQt5 Tree Widget
Рекомендации по теме
Комментарии
Автор

Hats up to you Madam, what a clear explanation. God bless you

samiulhaq
Автор

thank you very much for creating this video, the docs cannot compete with it

Skullschildi
Автор

I think there is a typo in the code. In item.parent.text(0) should be item.parent().text(0)

paulopraca
Автор

Nice tutorial, thank you for the time you spent for us !

burns
Автор

I wasted days trying to learn how to extract the data from a treewidget, and the last 2 minutes of your video got me out of my doubt. Can you share the code with me? thank you very much

ya
Автор

Very interesting video, I am interested in your use of XML. I am currently coding a qt5 C++ application with a tree widget and table widget :). I have always wanted to learn Python. Happy coding.

asynchApologist
Автор

Thanks for the video. Where can we download the books.xml file

paulopraca
Автор

The video is really good to understand. But I want to know how can I connect the child objects to Mongodb database? Please help if you know

sadiaferdous
Автор

Hello very nice video. I have a quetion. Is it possible to click an item of a nabigation tree and through that click to call a function that pops up a new widget to our main Window?

dimitrisp.
Автор

Hello,

What function can I use so when I click in a treewidget child I open another window ?

Thanks

powlock
Автор

Can you make a tutorial for qtreewidget with pyqt to get data from mysql?

maryam
Автор

How to reverse it? Save the QtreeWidget to XML file that can loaded?

ikhsanmaulana
Автор

Hi Hala, how to solve pyqt5 module not found error?

dhanunjayam