Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to capture the index of a row?
Forum Updated to NodeBB v4.3 + New Features

How to capture the index of a row?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 717 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.
  • L Offline
    L Offline
    lima_will
    wrote on last edited by
    #1

    Guys,

    I'm beginning to study Qt, I'm using Qt5.1. I'm orienting following these tutorials:

    http://www.codeprogress.com/cpp/libraries/qt/qtClasses.php?item=QTableWidget

    Following the link below I'm able to select the entire row:

    http://www.codeprogress.com/cpp/libraries/qt/QTableWidgetSelectRowBehavior.php#.UkLh2lNF1Fi

    But in this tutorial:

    http://www.codeprogress.com/cpp/libraries/qt/showQtExample.php?index=140&key=QTableWidgetDetectHeaderClick

    the examples it shows only how to capture the index of a table header but would like to show the index of the line. How can I do this?

    In the example he uses:

    @setClickable(true);@

    But now changed to:

    @setSectionsClickable(true);@

    I know the sample is old version but I believe that has changed only a few commands, am I correct?

    And I'm sorry for my english!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      Hi!

      Did you take a look at documentation?
      "Here":http://qt-project.org/doc/qt-5.0/qtwidgets/qtablewidget.html#signals is a list of all signals emited by QTableWidget. I believe you're searching for cellClicked signal.

      Regards,
      Jake


      Code is poetry

      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