List/TreeWidget vs. List/TreeView?



  • Python 3 / Windows 7

    I'm still learning Python & PyQt and so far I've been using the ListWidget and TreeWidget. I get the impression that ListView and TreeView are more powerful or flexible in some way but I can't seem to find the pros and cons of each. Can anyone enlighten me on what situations I may find ListView / TreeView to be better than the Widget versions? (Or simply point me in the direction of an explanation if there's one already written -- I can't seem to find one).

    Thanks



  • Views works on model, widget versions works on inserted items.

    Read "Model View programming":http://qt-project.org/doc/qt-4.8/model-view-programming.html


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.