<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> QTableView *always* has both a horizontal and vertical header,<br>
> so it will never return None for their getter functions.<br>
<br>
I can see that in the docs but in my code there is an old comment about <br>
some headless tests failing. But its very likely this is somehow <br>
conflating the length behaviour you mention above. I'll try to do some <br>
cleanup.<br></blockquote></div><div class="gmail_quote"><br></div><div class="gmail_quote">As far as I know, that behavior has existed for more than a decade (I can confirm it even with the latest PyQt4), and QTableView was never intended to exist without its headers, since it uses them for many aspects, including those related to item hints/geometries and the overall viewport size. Maybe it was different with Qt3 or earlier Qt4, but that's irrelevant now: QTableView always has and must have two *valid* QHeaderView instances for both its headers, it always set default ones in its private constructor, and it's impossible to set any of them to None/null.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Regards,</div><div class="gmail_quote">MaurizioB<br></div><div class="gmail_quote"><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div>