Things I Frequently Forget (TIFF)

C++

Tables

To change the spacing between rows of a table (which seems to be way too much by default), use the following::

 
table->verticalHeader()->setDefaultSectionSize(fontMetrics().lineSpacing() + 5);

You will need to #include <QHeaderView> as well.