Results 1 to 2 of 2

Thread: How to capture the index of a row?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question How to capture the index of a row?

    Guys,

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

    http://www.codeprogress.com/cpp/libr...m=QTableWidget

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

    http://www.codeprogress.com/cpp/libr...p#.UkLh2lNF1Fi

    But in this tutorial:

    http://www.codeprogress.com/cpp/libr...ectHeaderClick

    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:

    Qt Code:
    1. setClickable(true);
    To copy to clipboard, switch view to plain text mode 

    But now changed to:

    Qt Code:
    1. setSectionsClickable(true);
    To copy to clipboard, switch view to plain text mode 

    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!
    Last edited by lima_will; 25th September 2013 at 14:16.

Similar Threads

  1. Replies: 3
    Last Post: 9th September 2012, 17:00
  2. Image capture
    By TheDuncan in forum Newbie
    Replies: 1
    Last Post: 13th April 2010, 08:12
  3. Cannot capture Key_Up
    By xenome in forum Qt Programming
    Replies: 7
    Last Post: 10th September 2009, 16:21
  4. Replies: 3
    Last Post: 5th July 2009, 17:22
  5. Application Id Capture
    By PRIYANOB in forum Qt Programming
    Replies: 1
    Last Post: 11th September 2007, 11:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.