Qt Forum

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

    Forum Updated on Feb 6th

    [PyQt] How can I get a selected item in a ListView.

    Language Bindings
    2
    3
    6637
    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.
    • D
      Dimitrius last edited by

      I need to get a selected item in my ListView and then delete this item with a click button. I can't find an example how to get a selected item in Python.
      Someone help me ?

      1 Reply Last reply Reply Quote 0
      • R
        redstoneleo last edited by

        http://qt-project.org/doc/qt-4.8/qlistview.html#selectedIndexes

        1 Reply Last reply Reply Quote 0
        • D
          Dimitrius last edited by

          Can you show me an example of how to do this? I can't understand this link.

          thanks!

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