qtreewidgetitem Questions

5

Solved

I have a QTreeWidget with a column filled with some numbers, how can I sort them? If I use setSortingEnabled(true); I can sort correctly only strings, so my column is sorted: 1 10 100 2 20 2...
Atrophy asked 12/12, 2008 at 16:10

5

Solved

I am attempting to create a tree widget that will essentially allow the user to view various breakdowns of data and have the option to delete certain items. In order to do this I want to have check...
Loopy asked 10/7, 2015 at 13:38

11

Solved

I have a QTreeWidgetItem with two columns of data, is there any way to make only the second column editable? When I do the following: QTreeWidgetItem* item = new QTreeWidgetItem(); item->setFla...
Pinebrook asked 10/5, 2010 at 10:40

5

Solved

I've created a checkbox that's also a QTreeWidgetItem using the code below. //Populate list QTreeWidgetItem *program = createCheckedTreeItem(QString::fromStdString(itr->first), true); treeProg...
Lyssa asked 13/3, 2012 at 15:4

4

Solved

Several webpages say that QTreeWidgetItem can be deleted by deleting or QTreeWidget.clearing. But my code sample below doesn't seem to do so. Am I doing anything wrong? #!/usr/bin/python import sy...
Gariepy asked 25/10, 2012 at 5:47

2

I have created a QTreeWidget, I'm trying to list all the items displayed. I do not want to go inside the items if the item have child but not expanded. It's really getting the number of Items I ca...
Hypnotism asked 3/3, 2015 at 10:16

3

I've added QLabel widgets to my QTreeWidget to work around the word wrapping issue in QTreeWidget. (see how to word wrap a QTreeWidgetItem). The QLabel widgets appear to have spacing around the tex...
Girl asked 8/1, 2014 at 21:48

5

How do I remove the background color of a QTreeWidgetItem, or reset it to the default? treeWidgetItem.setBackgroundColor(0, QtGui.QColor('green'))
Caution asked 11/6, 2016 at 7:9

1

Solved

How to create sub item in the QTreeWidget? I was able to create top level items (listing below), but still looking for sub items. PyQt->5.6 Python->3.5 Spyder->3.0.2 import sys from PyQt5.QtWidget...
Bari asked 17/12, 2016 at 23:55

1

Solved

How to find item in QTreeWidgetItem by text? Is there an analog of QTreeWidget's findItem method ?
Creedon asked 17/4, 2015 at 8:45

3

Solved

I'm attempting to remove a top level tree widget item if there are no child nodes within the top level item. What is the correct way to do this? I can't seem to find the API call within Qt's docume...
Bufflehead asked 22/2, 2012 at 9:22

1

Solved

I have a QTreeWidget which displays a single root node and one level of child nodes only. I need to permit the re-ordering of the child nodes. They must never be re-parented. This is how I enable ...
Thorstein asked 22/1, 2014 at 13:13

3

Solved

There is a 1 at the top of a QtreeWidget. How do i fix it?
Wildermuth asked 28/1, 2012 at 2:7
1

© 2022 - 2025 — McMap. All rights reserved.