Moving QTreeWidgetItems between two QTreeWidgets
-
@Ovidiu_GCO Do you really need a tree structure? If not you could simply use QListWidget.
-
@Ovidiu_GCO
Hi
Would a driver have more than one car,
or could the the information be presented as one item ?
like
-
@mrjj There could be more entries of the same driver with different cars, yes.
I will try the QTableWidget approach, but I already stepped in other problems with it. (I will make a new post since they are not connected).
Thank you all for your time and advices! ;)
-
Hi
Ok, so it really is a tree/table structure.
-Driver
--Car
stats
--Car
StatsBut i do wonder when you then select a driver, all his cars should
also be shown in the other list or just one of the cars ? (used for that race)I liked this info
https://wiki.qt.io/How_to_Use_QTableWidgetwhen starting using QTableWidget
-
@Ovidiu_GCO As alternative you could use several list widgets:
- On the left is a list of drivers
- To the right side of the first list you have a second one: when you select a driver you put the cars of that driver into this list
- More lists if needed...