qtreewidget 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 looked around and it seems that the problem is present not only for tree widget but also for other widgets. But in my case, I found a solution, although an incomplete one. I am adding actions to ...
Autosome asked 9/1, 2013 at 14:5
5
Solved
Is there a way to make a QTreeWidget mirror the changes made to an internal data structure such as dictionary? It seems like they would have created this functionality within the api, because there...
Primitivism asked 15/2, 2014 at 23:22
3
I am building a simple application to open up a folder of data and plot that data. Importing the data updates a QTreeWidget that shows which signals are available to plot. Ex:
The QTreeWidget is...
Longdrawnout asked 17/11, 2014 at 0:33
2
Solved
Where are the signals itemChecked and itemUncheсked on the QTreeWidget?
Qt Signals: (quote from PyQt4 QTreeWidget documentation page)
void currentItemChanged (QTreeWidgetItem *,QTreeWidgetItem *)...
Phrasing asked 1/12, 2012 at 17:49
3
Solved
Is there any way to set column width for QTreeWidget from code? I want to chage default width of first column. I'm using PySide.
Austria asked 4/2, 2013 at 16:56
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
3
Solved
How do i do that?
Actually my main goal is to get which checkbox in the QTreeWidget is checked. But this I can do if you guys help me out with that one.
Well, I cannot find a method that gives me t...
Nakano asked 3/4, 2012 at 2:8
4
Solved
I have a QTreeWidgetItem added to a QTreeWidget:
QTreeWidgetItem* item = new QTreeWidgetItem(ui->trwPairs);
item->setFlags(item->flags() | Qt::ItemIsEditable);
If the item is edited, I ...
Bobbi asked 27/8, 2012 at 17: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
2
Solved
I am a student programmer and I am using Qt to build a GUI interface for work. I have a QTreeWidget that has a total of 8 Columns. The input that needs to be entered into each one of these columns ...
Kerikeriann asked 24/1, 2012 at 23:28
2
Solved
I'm trying to add a constraint to the QTreeWidget drag and drop function to prevent the branches from entering another branch in another root.
Here's an example to make things more clear:
I have 4...
Cheesy asked 16/12, 2013 at 18:24
1
Solved
I want to implement in my program a tree with nested sub-levels, and I'm looking for which of those two kind(View/Widget) is best suited for my goal.
I have a list of days with task that are eithe...
Detrain asked 8/1, 2015 at 4:13
2
Solved
Does anyone know if its possible to select multiple items on a QTreeWidget and how to go about enabling the multiple selection?
All the items I want to be selectable are top level QTreeWidgetItems...
Strongminded asked 3/8, 2011 at 10:24
2
Solved
I have a file which has absolute filepaths listed, 1 per line. The listed files are in order, so all files in e.g. the /Documents/ dir will be listed after eachother in the file.
What I want to do...
Deraign asked 27/4, 2012 at 10:13
3
Solved
I subclassed a QTreeWidget, set its dragDropMode to InternalMove and populated it with custom items, some of which can be dragged, others accept drops. The user can move items around the tree as ex...
Cesspool asked 17/7, 2013 at 20:5
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
2
I've recently hit a wall in a project I'm working on which uses PyQt. I have a QTreeView hooked up to a QAbstractItemModel which typically has thousands of nodes in it. So far, it works alright, bu...
Interlard asked 8/5, 2009 at 18:10
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
2
Solved
I've checked the documentation here and I can't seem to find a method for setting the text of a QTreeWidget's title or header.
Without setting the title QTreeWidget automatically uses the number ...
Revoke asked 30/3, 2012 at 13:23
1
Using Python3 and pyside.
I have a python dictionary which I want to display as a tree using Qt. I want the values to be editable but not the keys. I have managed to achieve this using setItemWidge...
Adriene asked 2/3, 2013 at 19:59
2
Solved
I am currently reading model/view tutorial from Qt, but I am still not sure if I should use model/view or widget for my Qt program :
I need to do a logger application that will monitor all informa...
Hudgens asked 22/1, 2013 at 14:46
2
Solved
I'm finding it frustratingly hard to find a simple way to delete my selected QTreeWidgetItem.
My patchwork method involves setting the tree's current selection to current and then:
if current.par...
Cathe asked 26/8, 2012 at 21:30
1 Next >
© 2022 - 2025 — McMap. All rights reserved.