Results 1 to 2 of 2

Thread: QTableWidget spaces between column

  1. #1
    Join Date
    May 2011
    Posts
    18
    Thanks
    2

    Default QTableWidget spaces between column

    For a question of ergonomy, i want to add a space between 2 columns of my QTableWidget. I couldn't find a way in the doc.
    And adding an empty column makes things pretty ugly.

    Is this add possible?

    Thanks

  2. #2
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTableWidget spaces between column

    own delegates QAbstractItemView::setItemDelegate
    See QAbstractItemDelegate.

    Subclassing QItemDelegate in smart way should do the trick.

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

    evergreen (16th May 2011)

Similar Threads

  1. QTableWidget stretch a column other than the last one
    By roleroz in forum Qt Programming
    Replies: 6
    Last Post: 4th February 2015, 06:35
  2. QTableWidget first column always visible
    By topino in forum Qt Programming
    Replies: 13
    Last Post: 30th December 2014, 08:06
  3. How does the QTableWidget sort a column?
    By codemonkey in forum Qt Programming
    Replies: 1
    Last Post: 4th October 2009, 13:21
  4. QTableWidget : hidding a column ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 2nd April 2007, 14:35
  5. QTableWidget and column selection
    By Arthur in forum Qt Programming
    Replies: 1
    Last Post: 30th March 2007, 15:02

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.