A Dijous, 23 de juliol de 2009, Fabrizio Milo aka misto va escriure: > Hi, > > how can I set programmatically the height of the rows of a QTreeView?
Row height depends on the sizeHint() of all the delegates in the row. So it depends on the font size (or if the text is wrapped, etc). > I would like also to increase the font, but doing > self.font().pixelSize() returns -1 You can set the font with: f = self.font() f.setPointSize() or f.setPixelSize() self.setFont( f ) > > Any Ideas? > > Thanks > -------------------------- > Luck favors the prepared mind. (Pasteur) > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Albert Cervera i Areny http://www.NaN-tic.com Mòbil: +34 669 40 40 18 _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
