Results 1 to 6 of 6

Thread: QTableWidget row selection

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Las Vegas, Nevada - USA
    Posts
    12
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTableWidget row selection

    Lykurg:

    Thank you and I will try this. You are correct that I am trying to hide the dotted lines.

    Row selection isn't an issue, the fact that you have to override a paint when row selection is already set seem like a bug. But most likely there are hundreds of good reasons for this.

    Thank again for you help, and I will post if I was sucessful or not.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTableWidget row selection

    Quote Originally Posted by BingoMaster View Post
    the fact that you have to override a paint when row selection is already set seem like a bug.
    No it's not. Selection and focus are two different things. And to indicate which item inside a multi-item-selection is "selected"/focused you need that dotted line. So in normal case it's perfect. Your case is special, because you don't need the information which item is focused. So small reimplement and all is fine. I've done that a lot of times myself...

Similar Threads

  1. QTableWidget, selection problem
    By stella1016 in forum Qt Programming
    Replies: 2
    Last Post: 6th October 2009, 15:49
  2. Selection in QTableWidget
    By Nippler in forum Qt Programming
    Replies: 3
    Last Post: 30th April 2008, 08:32
  3. Dragging mouse selection in QTableWidget
    By yartov in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2008, 15:03
  4. Selection of cell with QWidget in QTableWidget
    By Tamara in forum Qt Programming
    Replies: 7
    Last Post: 17th February 2007, 14:11
  5. QTableWidget (resizing rows, turning off selection, etc.)
    By kiss-o-matic in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2007, 01:57

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.