Results 1 to 3 of 3

Thread: QTableWidget: Disable 'snapping' to rows and columns?

  1. #1
    Join Date
    Aug 2008
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTableWidget: Disable 'snapping' to rows and columns?

    Hi guys,

    I have a table widget with a lot of data, so that scroll bars get displayed. When moving the scroll bars I notice that the QTableWidget always 'snaps' to the nearest row/column. That is, you can't use the scroll bars to position the table widget with half a row showing at the top, or half a column on the left.

    Is there a way to change this behaviour? I have very wide columns and it makes the scrolling feel quite unnatural...

    Thanks,

    David

  2. #2
    Join Date
    Sep 2008
    Posts
    60
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget: Disable 'snapping' to rows and columns?

    Check out QAbstractItemView::verticalScrollMode

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

    PolyVox (8th October 2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget: Disable 'snapping' to rows and columns?

    Perfect That was exactly what I needed, thanks a lot.

Similar Threads

  1. Replies: 6
    Last Post: 5th March 2006, 21:05

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.