PDA

View Full Version : What widget i should use



raphaefpoliveira
4th October 2011, 18:46
Hello guys. This probably is a very newbie question but im having a hard time with this. I have an object that i want to show in a TreeView (or TreeWidget), idk the best to use.
What i want is: my object is a Player with 2 attributtes, score and name for example, them i want a tree view like this

----Jogador
--------score
--------name
----Jogador
--------score
--------name

how can i achieve this?

Lykurg
4th October 2011, 21:35
By reading the docs to QTreeWidget or read about the model and view concept. There are also tutorials and examples shipped with the docs and one ore two surely use a QTree***. So just look there.

Or ask a more precise question (for a smaller problem)/what have you tried so far?