[Qt-interest] QTableView RowHeight

Arnold Krille arnold at arnoldarts.de
Tue May 12 10:53:35 CEST 2009


On Monday 11 May 2009 18:25:13 Neel Basu wrote:
> I want to decrease row height of all rows in my QTableView.
> I dont want to change 1 or 2 rows I want to change all row's height (I
> don't like to loop through all rows and change all their heights)
> How can that be done ??
> Can that be done with StyleSheets ??

I haven't worked with stylesheets but assuming that you have a custom model 
and want to use standard views without modification: What about returning the 
(minimum) size with data( index, Qt::SizeHintRole )?

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090512/9dacdcc1/attachment.bin 


More information about the Qt-interest-old mailing list