Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    List/TreeWidget vs. List/TreeView?

    Language Bindings
    2
    2
    8186
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alabaster last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Hostel last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post