Results 1 to 3 of 3

Thread: getting position of qtablewidget current row

  1. #1
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default getting position of qtablewidget current row

    How can I get position of QTableWidget's currentRow()?

    I use pos() for other widgets but currentRow does not have it. I use tablewidget->pos() to retrieve position of current row, but if tablewidget has scroolbar pos() function return wrong position.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,546
    Thanks
    13
    Thanked 1,578 Times in 1,507 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: getting position of qtablewidget current row


  3. The following user says thank you to ChrisW67 for this useful post:

    iskenderoguz (21st October 2013)

  4. #3
    Join Date
    Jul 2013
    Posts
    16
    Thanks
    6
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: getting position of qtablewidget current row

    Thnak you @ChrisW67

Similar Threads

  1. Replies: 2
    Last Post: 20th February 2012, 21:58
  2. Replies: 0
    Last Post: 13th February 2012, 02:52
  3. QSlider : How to hint current position value ?
    By andre_teprom in forum Newbie
    Replies: 2
    Last Post: 10th August 2011, 01:19
  4. QTableWidget highlight current position in header
    By lalesculiviu in forum Qt Programming
    Replies: 0
    Last Post: 27th February 2010, 19:10
  5. How to know current global mouse position?
    By Teerayoot in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2007, 19:25

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.