[PyQt] do set hints work QStandardItem?

David Boddie david at boddie.org.uk
Sun May 6 02:07:05 BST 2007


On Friday 04 May 2007 12:14:42 -0700, Matt Chambers wrote:

> using qt 4.2.2, pyqt 4.1.
>
> some example code, it acts like a qstandarditem which contains an array
> with the entire row inside.  No matter
> what I do to the size hint, the column size always starts out way to
> small to display the data.  Height, apparently
> does work, its width that seems to have no effect.

Is this when you display the model using a QTableView class? If so, you
may be able to get close to what you want by calling the view's
resizeColumnsToContents() method.

David



More information about the PyQt mailing list