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
Get drag-n-drop qtreewidget items - Python
Is there a way I can get the items being drag/dropped and their destination parent?
In an ideal scenario what I want to happen is once the dropEvent finishes, it prints the qtreewidgetitems which were moved, as well as the new parent which the items…

JokerMartini
- 5,674
- 9
- 83
- 193
0
votes
1 answer
Limit the number of items in a QTreeWidget
Is there a way to limit the number of items my QTreeWidget can have, similar to a FIFO buffer ?

Garjy
- 467
- 5
- 12
0
votes
1 answer
qt unit test QTreeWidgetItem has not been declared
I have one very bad-coded gui app with class Tools(). And i want testing other class Tree() in same file with unit tests.
I had write simple empty Tree class to trying unit tests.
TOOLS.H
#ifndef TOOLS_H
#define TOOLS_H
#include "json.h"
#include…

murzagurskiy
- 1,273
- 1
- 20
- 44
0
votes
1 answer
How to save the QTreeItem structure created by user in xml file?
How to create xml file contains the level hierarchy structure of the QTreeWidgetItem which is created by user,I'm using (ETreeElement for creating xml file)?, I tried to do this by making the xml file get the structure during the user create it but…
0
votes
1 answer
PyQt TreeWidget Smooth updating (model-view?)
I am trying to update a QTreeWidget every 60 seconds. I have it on a QTimer right now but my concern is that when it updates it will disrupt the users progress(for example if they have a parent opened up so you can see the children, when I update it…

sudobangbang
- 1,406
- 10
- 32
- 55
0
votes
0 answers
QTreeWidgetItem editing finished slot
For a while now I am trying to figure out how to trigger a signal when an item in a QTreeWidget is edited. I tried to use the slots like currentItemChanged, ItemEntered and others from the QTreeWidget but they do not trigger. I would aprichiate all…

Łukasz Przeniosło
- 2,725
- 5
- 38
- 74
0
votes
0 answers
QTreeWidgetItem ChildIndicator strange behavior
I have develop an app using a QTreeWidget and based on QTreeWidgetItem. The app is a file browser-like. Each time I had to display a folder, I create it like this :
item->setText(0, foldername);
item->setText(1,"--");
…

Seb
- 2,929
- 4
- 30
- 73
0
votes
1 answer
How to used itemExpanded with a subclass of QTreeWidgetItem
I do have a connection related to SIGNAL/SLOT use in Qt/C++
I have wrote an app using a QTreeWidget + QTreeWidgetItems. For the need of the app, I had to subclass QTreeWidgetItem to MyQTreeWidgetItem in order to add some parameters.
Since I move…

Seb
- 2,929
- 4
- 30
- 73
0
votes
1 answer
QTreeWidget Stylesheet Color for Childs
System: Linux Mint, QT Creator from Repo -> QT Version 5.2, C++)
I've created a Customwidget wich Im using inside a QTreeView
OwnItem *OI = new OwnItem;
QTreeWidgetItem *itemN = new…

hypnomaki
- 593
- 9
- 22
0
votes
1 answer
QtreeWidget Border Issue
I have a qtreewidget in my application. I have set the stylesheet like below for it.
setFrameShape(QFrame::NoFrame);
setStyleSheet("QTreeView { border: none; background: transparent; outline:none; }" "QTreeView::item:!selected:hover { border: 1px…

user3336091
- 17
- 1
- 6
0
votes
1 answer
Char* corrupted when trying to get it / set it
I used to add a feature in my app based on treewidget.
When right click on an item, I can create a folder on the FS over USB is used.
That mainly say that when selecting an item on the TreeWidget, I get its name and check if it's a folder, if yes, I…

Seb
- 2,929
- 4
- 30
- 73
0
votes
0 answers
qtreewidgetitem expand action
I have currently design an interface using TreeWidgetItems.
I have connected some actions depending on what i want to do. such as below
connect(this, SIGNAL(itemClicked(QTreeWidgetItem*, int)),
this,…

Seb
- 2,929
- 4
- 30
- 73
0
votes
1 answer
How to share data with a TreeView such as done by gtk_list_store
I do managing an app with a TreeView in Qt/C++
In order to not mix File system access and window/UI management, I do have a create a C++ code which manage to interact with the FileSystem and a C++ class which is in charge of displaying the Tree
I…

Seb
- 2,929
- 4
- 30
- 73
0
votes
2 answers
How to get the new value of a qtreewidgetitem after entering new value
I have created a treewidget and I have added some treewidgetitems which is editable.
My goal is now to catch the new value of the item after entering it.
Here is the code:
QTreeWidgetItem* child = new QTreeWidgetItem();
child->setText(0,…

Seb
- 2,929
- 4
- 30
- 73
0
votes
1 answer
QList statement
I'm working with with QTreeViewItem and also QList.
What I'm doing in my C++/Qt app is to build a TreeView with multiple elements inside.
When clicking on a dedicated action, I'm checking which item of my tree view is selected and get the item…

Seb
- 2,929
- 4
- 30
- 73