Results 1 to 4 of 4

Thread: Reduce a table view's cell padding or margin

  1. #1
    Join Date
    Aug 2009
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Reduce a table view's cell padding or margin

    I'm using a Table View.
    I'd like to remove the cell padding (or margin) so I can squeeze more cells on less space. How can this be achieved?
    The cells size is set to 32 pixels on QT designer, if I set it smaller, the cells contents don't show and an ellipsis appears. (...)


  2. #2
    Join Date
    Aug 2009
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Reduce a table view's cell padding or margin

    Does anybody at least have a clue? or can point me to what you suspect it may be related to? some class, or property, or something?

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,722
    Thanks
    13
    Thanked 1,606 Times in 1,533 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Reduce a table view's cell padding or margin

    Is there a leading space on the text you are putting in the cells? I can set small example to 24 pixels and the two hex digits are visible and nicely centred.

  4. #4
    Join Date
    Jun 2010
    Posts
    32
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Reduce a table view's cell padding or margin

    Have you tried to use stylesheet?

Similar Threads

  1. Replies: 3
    Last Post: 19th February 2012, 11:40
  2. Replies: 5
    Last Post: 3rd April 2010, 04:07
  3. QPainter.drawText and margin/padding
    By invictus in forum Newbie
    Replies: 1
    Last Post: 24th July 2009, 12:56
  4. QTreeView cell as table
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2009, 09:45
  5. Making Table cell as a combobox?
    By kaushal_gaurav in forum Qt Programming
    Replies: 9
    Last Post: 1st August 2008, 12:04

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.