The QTreeWidgetItem class, part of the Qt framework, provides an item for use with the QTreeWidget class.
Questions tagged [qtreewidgetitem]
219 questions
0
votes
1 answer
Using QFileSystemModel along QTreeView and QTreeWidgetItem
I have a "project structure", which is something like this.
-Project Main File
--Project Subfile 1
--Project Subfile 2
--Project Subfolder 1
---Project Subfolder 2
----Project Subfile 3
I'm using a QFileSystemModel to get the files on the specified…

Blastcore
- 360
- 7
- 19
0
votes
1 answer
return a derivated QTreeWidgetItem
I think that this is not a question regarding especially Qt but a quaestion of a lack of programming expeience.
I derived a class from QTreeWidgetItem and I added some bolean flags. When i initialize a QTreeWidget I add two of them…

user1540939
- 79
- 1
- 5
0
votes
1 answer
Sort a QTreeWidgetItem by a data value?
Is it possible to sort a PyQt QTreeWidget by a QTreeWidgetItem's data column?
For example, I've got a list of directories I want to sort by size on disk displaying in the QTreeWidget, but instead of displaying the results (in bytes) I use a method…

mfessenden
- 598
- 4
- 12
0
votes
1 answer
Level as list in QtreeWidget
I have vector with 6 numbers, which I want insert to list and add this list to QTreeWidget. First number of list is on "root" level and other numbers are sublevel "root".
I don't know how to do it.
Image with describe:
Code:
void modal::zapis()…

avalagne
- 359
- 3
- 7
- 15
-1
votes
1 answer
Why are checkboxes showing through in qt (pyqt) QStyledItemDelegate for TreeWidget
I am trying to build a custom TreeWidget using a QStyledItemDelegate to draw custom checkboxes. Everything is working fine, except when I resize the TreeWidget columns. As you'll see below, when the "Age" column is moved all the way to the left, the…

LozzerJP
- 856
- 1
- 8
- 23
-1
votes
1 answer
Python unhashable type: QTreeWidgetItem
I'd like to reverse my key and value in a dict. Item numbers are created as QTreeWidgetItem, and dataBlock#s are the data object for the item number.
my_dict = { dataBlock1:item1, dataBlock2:item2, dataBlock3:item3}
inv_dict = {v:k for k,v in…

Bebe Win
- 1
- 1
-1
votes
1 answer
How can I set the width of a QTreeWidgetItem?
Does it exist an equivalent function of QTreeView.setColumnWidth() for a QTreeWidgetItem ?

Vincent
- 113
- 2
- 14
-1
votes
1 answer
which class need to be addressed to support drag'n drop between Qt app and finder
I'm trying to build an app which list the folders and files from an Android device to finder and be able copy from/to PC.
I have done the class as below in my Browser.cpp
Browser::Browser(USBDevice dev, QWidget *parent) :
QTreeWidget(parent)
{
…

Seb
- 2,929
- 4
- 30
- 73
-2
votes
1 answer
Flash an active Qt tree widget item green
I would like to flash (between green & white) an active item in my QTreeWidget in Qt. This means it should stop flashing the previous items that were active once.
I have tried the following and not had it working as I want it:
**void…

coder
- 21
- 3