Truthiness of a QHeaderView
Colin Macdonald
cbm at math.ubc.ca
Thu Sep 5 22:33:06 BST 2024
On 2024-09-03 11:05 a.m., Maurizio Berti wrote:
> It behaves similarly to other classes that have a mono dimensional
> "length" (eg. having a count(), like QLayout or QListWidget).
> When QTableWidget is created with 0 rows or columns, the respective
> headers will have a length based on those counts.
Thanks, that makes sense!
> QTableView *always* has both a horizontal and vertical header,
> so it will never return None for their getter functions.
I can see that in the docs but in my code there is an old comment about
some headless tests failing. But its very likely this is somehow
conflating the length behaviour you mention above. I'll try to do some
cleanup.
thanks,
Colin
More information about the PyQt
mailing list