QTableView.verticalHeader().setOffset() doesn't work

Maurizio Berti maurizio.berti at gmail.com
Sun Mar 20 15:52:51 GMT 2022


Can you provide a MRE to show how you tried to set the offset?
Remember that the offset of headers is always updated whenever *any* change
would result in a call to updateGeometries() (model size/layout changes),
and, obviously, whenever scroll bars are updated (value/range change),
including changes caused by the view receiving a resize event.

Maurizio

Il giorno dom 20 mar 2022 alle ore 14:13 Matej Brezović <
matey.brezovic at gmail.com> ha scritto:

> Tried setting offset for verticalHeader of QTableView in both PyQt5
> (5.15.2) and PyQt6 (6.2.2), it doesn't do anything. Works for horizontal
> headers but not for vertical ones.
> I can't confirm if this is a problem just with PyQt or with Qt as well
> because I don't use C++.
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
> <#m_6015398719878155313_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


-- 
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220320/b35612ae/attachment.htm>


More information about the PyQt mailing list