2020欧洲杯时间表

Questions tagged [qtreewidget]

QTreeWidget is a class in Qt that provides a tree-like view of data.

Filter by
Sorted by
Tagged with
-1
votes
0answers
43 views

Convert data from database to QTreeWidget in python and pyqt5

I am facing a problem on how to convert data from database to QTreeWidget. Below (two images) illustrate the data from table (Classes) and the wanted result. I know the answer could be complicated, ...
1
vote
1answer
25 views

PyQt5 QTreeWidget in layout showing an extra column outside the widget

I am trying to write a PyQt5 widget which will be a basic preset manager inside an application. I am trying to use the QTreeWidget to display the structure of each type. I have this weird issue, where ...
0
votes
0answers
28 views

How does Qt compute background color of selected items

My question is how Qt does compute the color of a selected item of a QTreeWidget. As I described in my question Determine visible size of a QTreeWidget column I want to modify the way text is written ...
0
votes
1answer
29 views

Use a QTextCursor in a QTreeWidget in PyQt5

I would like to underline something in a QTreeWidget with a red wave like this : I tried to pull this off with a QTextCursor but apparently it's not possible. Anyone knows another way ? As an ...
0
votes
0answers
24 views

How to create a Python treeview with tags and get items coordinates later with QTreeWidget => PyQt

I am pretty new in python (and this is my first post here). so Hello everyone! I developed a Treeview widget using Tkinter. I used the next code sentence to create the Treeview items and subitems ...
0
votes
1answer
30 views

how get selected child index in QTreeWidget

How can I get the index of the selected child in such a hierarchical structure? By selecting item with name "child A", get its index. if __name__ == '__main__': app = 0 if QApplication....
1
vote
0answers
110 views

Reorder items in a tree

I want to be able to reorder the items in my_tree and I have somewhat achieved this as follows: my_tree.setDragEnabled(True) my_tree.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove) my_tree....
1
vote
1answer
27 views

PyQT5 QTreeWidget get full path of clicked element

I hope you all safe and healthy. My problem is simply I am trying to make a video player and I have QTreeWidget with elements (folders & files) from given path on it. I want to make play video ...
0
votes
0answers
9 views

QTreeView re-sort item after contents changed

I have a QTreeWidget that calls sortByColumn(0, Qt::AscendingOrder); setSortingEnabled(true); in its constructor. The sort order is defined via a custom < operator on the items. Adding elements ...
0
votes
1answer
36 views

QTreeWidget and QPainter combination

I am a bit lost with the QTreeWidget and I were not able to suck the relevant information from the found topics (like: how to set QTreeView background image with QStyle::StandardPixmap in stylesheet ...
-2
votes
1answer
48 views

How to move arrows to the next column in qtreewidget [duplicate]

In pyqt5, using qtreewidget, I'm trying to shift the arrows under the next header. Is this possible? I would like to add a thumbnail to the first column and have the arrows in the second. This is ...
0
votes
1answer
41 views

Get the most top-level item of a QTreeWidgetItem

I would like to find the most top-level parent item of a QTreeWidgetItem, no matter how many levels deep it is in the tree. Problem with using item.parent() is that it could return another ...
1
vote
1answer
43 views

How add multiple comboboxes as a child to a QTreeWidgetItem

I'm in a situation where I need to dynamically generate a UI based on a randomly differing amount of parents with a random amount of nested children. When the child QTreeWidgetItem is expanded, it's ...
1
vote
1answer
42 views

Determine visible size of a QTreeWidget column

I need to determine the VISIBLE width of a column within a QTreeWidget. I'll explain my problem with a small example. A QTreeWidget defines three columns with the fixed width of col 1=200 px, col 2=...
0
votes
0answers
30 views

how to build a project folder manager n pyqt5 qtreewidget with drag and drop

I am building a kind of qtreewidget whch I can control the contents of a folder with drag and drop in my tree. I looked at this answer for loading the content of a folder and setting icon for them. ...

15 30 50 per page
1
2 3 4 5
29