Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [PyQt] How can I get a selected item in a ListView.
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Language Bindings
3 Posts 2 Posters 7.0k Views 1 Watching
  • 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 Offline
    D Offline
    Dimitrius
    wrote on last edited by
    #1

    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
    0
    • R Offline
      R Offline
      redstoneleo
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dimitrius
        wrote on last edited by
        #3

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

        thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved