Questions tagged [treewidget]
7 questions
7
votes
5 answers
How can I find the selected item in a QTreeWidget?
I have a class that inherits QTreeWidget. How can I find the currently selected row?
Usually I connect signals to slots this way:
connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick()));
However, I can't find anything similar for…

JuanDeLosMuertos
- 4,532
- 15
- 55
- 87
2
votes
1 answer
Python PYQT QTreeWidgetItem selected cell
I have QTreeWidget like this
What should i do to get value from selected row and filename column ?
I have current selected item
item = self.ui.files_treewidget.currentItem()
but how to access to specific cell?

RogerZ
- 61
- 1
- 2
- 3
1
vote
1 answer
How to obtain source dragged of drag & drop operation in QTreeWidget
(Sorry for my english)
I am currently trying to make a drag & drop in a QTreeWidget. So I put the corresponding settings and the method dropEvent :
class TreeWidget : public QTreeWidget
{
protected:
virtual void dropEvent(QDropEvent *event)…

Maluna34
- 245
- 1
- 16
1
vote
1 answer
Getting data from a QTreeWidgetItem inherited class
I have a class which inherits from QTreeWidgetItem and I intercept the click event.
I need to get another object from inside MY QTreeWidgetItem when I click the tree row, how can I do that??

JuanDeLosMuertos
- 4,532
- 15
- 55
- 87
0
votes
2 answers
Displaying forms using Tree in Qt
I'm building a Qt plugin with multiple forms. I have a main form which has a tree widget placed on the left of the form.
I want to add items to this tree, such that clicking on these items would load the corresponding form on the same form. But I…

athlon2005
- 1
- 2
0
votes
1 answer
ItemChanged signal fires three times in QTreeWidget
could somebody see what is causing the ItemChanged signal to fire three times instead of just once?
The intention is to:
load data from an external source
create a tree widget with the top level items corresponding to the columns of the data
tick…

konnidan
- 15
- 2
0
votes
1 answer
Classes, Objects, Treewidget and QlistWidget
I'm trying to create a program for a project in school (University).
The program is basically supposed to have a QTreeWidget with a bunch of components, the QTreeWidget will update when you click on a button (for example Chassis-button will change…