QTableWidget/QTableView very slow resizing?

Matic Kukovec kukovecmatic at hotmail.com
Sat Nov 19 10:08:08 GMT 2022


Hello Maurizio,

Your "Maybe you set some resize mode on the headers, ..." sentence made me try QHeaderView.ResizeMode.Fixed value for QHeaderView.setSectionResizeMode(),
and that solve the slow jitter problem.

Thanks
Matic
________________________________
From: Maurizio Berti <maurizio.berti at gmail.com>
Sent: Saturday, November 19, 2022 4:55 AM
To: Matic Kukovec <kukovecmatic at hotmail.com>
Cc: PyQt at riverbankcomputing.com <pyqt at riverbankcomputing.com>
Subject: Re: QTableWidget/QTableView very slow resizing?

Without any other details it's impossible to help you.
Maybe you set some resize mode on the headers, or used a custom delegate that requires too much time to repaint.

We need some actual code to start with, otherwise nobody could help you.

Regards,
Maurizio

Il giorno ven 18 nov 2022 alle ore 20:02 Matic Kukovec <kukovecmatic at hotmail.com<mailto:kukovecmatic at hotmail.com>> ha scritto:
Hi guys,

I have a QTableWidget (or QTableView) with 18 columns and about 500 rows.
Now scrolling works without problems, but resizing it is painfully slow. Here is an animation showing the problem:
[cid:1848e03a52b73fdc1cb1]

I tried it with both a QTableWidget and a QTableView with a custom model, no difference in the slow resizing.
Is there a way to fix this slow resizing?

Thanks
Matic


--
È 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/20221119/3389616c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_UsmbZVpji2.gif
Type: image/gif
Size: 214503 bytes
Desc: python_UsmbZVpji2.gif
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20221119/3389616c/attachment-0001.gif>


More information about the PyQt mailing list