Results 1 to 2 of 2

Thread: Making the focus rectangle for table enclose the entire row, not just the column item

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Making the focus rectangle for table enclose the entire row, not just the column item

    I currently have a QTableWidget with 3 columns and a bunch of rows, but when I click on a row, the focus rectangle encloses an individual column item, rather than the entire row - does anyone know how to make it enclose the entire row?

    I know the QTreeView widget has a "allColumnsShowFocus" property that does this but I couldn't find a similar property for QTableWidget

  2. #2
    Join Date
    Apr 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Making the focus rectangle for table enclose the entire row, not just the column

    Here's a screenshot to illustrate what I mean

    Anyone know how I might be able to get the focus rectangle to cover fields 2 and 3?

Similar Threads

  1. How can i avoid QPushButton Focus Rectangle
    By nightroad in forum Newbie
    Replies: 8
    Last Post: 4th October 2010, 10:06
  2. SQLite plugin - Dump entire table to a label similar.
    By Gavin Harper in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2010, 10:20
  3. QGraphicsView and showing entire item in it
    By T4ng10r in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2010, 11:44
  4. Hide the focus rectangle of a QGraphicsLineItem
    By ronno in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2009, 10:47
  5. Preventing blue focus rectangle
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 21st December 2007, 15:36

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.