QTableWidget: How can I get tighter lines with less vertical spacing padding?
        Posted  
        
            by Dirk Eddelbuettel
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dirk Eddelbuettel
        
        
        
        Published on 2010-02-01T18:51:19Z
        Indexed on 
            2010/04/08
            14:43 UTC
        
        
        Read the original article
        Hit count: 581
        
The QTableWdiget is fabulous for simple grid displays. Changing colors, fonts, etc is straightforward.
However, I did not manage to give the grid a 'tighter' look with less vertical whitespace. I see that the Qt documentation talks (eg here) about
- margin
 - border
 - padding
 
around widgets, but when I set these I only get changes around the entire grid widget rather than inside.
How can I set this (with a style sheet, or hard-coded options) directly to make the QTableWidget display tighter?
© Stack Overflow or respective owner