Hmm.. as far as I know "m" is the widest character. Remember that cells have margins, so if you want to display 7 characters, you need fm.width("m")*7 + 2*margin. But before you do that, take a look at QHeader::setStretchEnabled - if you enable stretch for all columns, they will scale when you resize the table.





Reply With Quote
Bookmarks