Questions tagged [qtreewidgetitem]

The QTreeWidgetItem class, part of the Qt framework, provides an item for use with the QTreeWidget class.

Documentation can be found here (Qt4) and here (Qt5).

205 questions
0
votes
1 answer

How to prepend a child item in qtreewidgetitem?

I want to keep the latest child nodes always to in the top level items in qtreewidget, how is this possible ? Normally QTreeWidgetItem::addChild() append the child item, so I tried QTreeWidgetItem::insertChild(0, childItem) but this doesnt helped…
Prady
  • 633
  • 3
  • 8
  • 25
0
votes
1 answer

how to delete checked items from QTreeWidget?

I have list of QTreeWidget items with check boxes, which are child items with few top level items. I want to delete the items which are in checked state, how can I iterate the qtreewidget and delete those items ?
Prady
  • 633
  • 3
  • 8
  • 25
0
votes
0 answers

Why there is no find item to get a unique item in QTreeWidget?

I have unique QTreeWidgetItems in QTreeWidget, I am using findItems() to find a specific item, it returns list of items. From this list taking the first item and storing in QTreeWidgetItem. but i wonder is there any method to find an item which…
Prady
  • 633
  • 3
  • 8
  • 25
0
votes
1 answer

Single QTreeWidgetItem instance on multiple QTreeWidget?

I'm trying to show a single QTreeWidgetItem instance on 2 QTreeWidgets, which ends up the item shown only on the 1st tree without being notified. I haven't seen its API doc talks about a limitation if any. Is there a way to…
IsaacS
  • 3,249
  • 3
  • 37
  • 59
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…
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
  • 69
  • 1
  • 4
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
  • 551
  • 4
  • 11
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
  • 349
  • 3
  • 7
  • 15
-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
  • 103
  • 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,365
  • 3
  • 20
  • 41
1 2 3
13
14