Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. how to get the selected rows counts into a list using QtableWidget
Qt 6.11 is out! See what's new in the release blog

how to get the selected rows counts into a list using QtableWidget

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 1.5k Views
  • 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.
  • GodOfCodeG Offline
    GodOfCodeG Offline
    GodOfCode
    wrote on last edited by
    #1

    I'm using QtableWidget with python to represent a students list and i'm using a Button to select multiple rows to do some commun modefications. i can't find solution to get the selected rows counts into a list.
    for exemple : selectedrows = [1,4,7,...].

    jsulmJ 1 Reply Last reply
    0
    • GodOfCodeG GodOfCode

      I'm using QtableWidget with python to represent a students list and i'm using a Button to select multiple rows to do some commun modefications. i can't find solution to get the selected rows counts into a list.
      for exemple : selectedrows = [1,4,7,...].

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @GodOfCode https://doc.qt.io/qt-5/qabstractitemview.html#selectedIndexes

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • GodOfCodeG Offline
        GodOfCodeG Offline
        GodOfCode
        wrote on last edited by
        #3

        thank you

        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