[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: QTableWidget/QTableView very slow resizing?
From:       Matic Kukovec <kukovecmatic () hotmail ! com>
Date:       2022-11-19 10:08:08
Message-ID: VE1PR09MB3280F656FBA6F7F9F877CBE2D7089 () VE1PR09MB3280 ! eurprd09 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@gmail.com>
Sent: Saturday, November 19, 2022 4:55 AM
To: Matic Kukovec <kukovecmatic@hotmail.com>
Cc: PyQt@riverbankcomputing.com <pyqt@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 th=
at 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@hotmai=
l.com<mailto:kukovecmatic@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. He=
re is an animation showing the problem:
[cid:1848e03a52b73fdc1cb1]

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

Thanks
Matic


--
=C8 difficile avere una convinzione precisa quando si parla delle ragioni d=
el cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net

[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"> Hello \
Maurizio,</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" \
class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof \
ContentPasted0 ContentPasted1 ContentPasted2"> Your &quot;<i><b>Maybe you set some \
resize mode on the headers,</b><b> ...</b></i>&quot; sentence made me try \
<i><b>QHeaderView.ResizeMode.Fixed</b></i> value for \
<i><b>QHeaderView.setSectionResizeMode()</b></i>,</div> <div style="font-family: \
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); \
background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 \
ContentPasted1 ContentPasted2"> and that solve the slow jitter problem.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof \
ContentPasted0 ContentPasted1 ContentPasted2"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof \
ContentPasted0 ContentPasted1 ContentPasted2"> Thanks</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof \
ContentPasted0 ContentPasted1 ContentPasted2"> Matic<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>From:</b> Maurizio Berti \
&lt;maurizio.berti@gmail.com&gt;<br> <b>Sent:</b> Saturday, November 19, 2022 4:55 \
AM<br> <b>To:</b> Matic Kukovec &lt;kukovecmatic@hotmail.com&gt;<br>
<b>Cc:</b> PyQt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
<b>Subject:</b> Re: QTableWidget/QTableView very slow resizing?</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>Without any other details it's impossible to help you.<br>
</div>
<div>Maybe you set some resize mode on the headers, or used a custom delegate that \
requires too much time to repaint.</div> <div><br>
</div>
<div>We need some actual code to start with, otherwise nobody could help you.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Maurizio<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Il giorno ven 18 nov 2022 alle ore 20:02 Matic \
Kukovec &lt;<a href="mailto:kukovecmatic@hotmail.com">kukovecmatic@hotmail.com</a>&gt; \
ha scritto:<br> </div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px \
solid rgb(204,204,204); padding-left:1ex"> <div class="x_msg-5325761950427462558">
<div dir="ltr">Hi guys,
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> I have a QTableWidget (or \
QTableView) with 18 columns and about 500 rows.<br> Now scrolling works without \
problems, but resizing it is painfully slow. Here is an animation showing the \
problem:</div> <div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> <img size="214503" \
style="max-width:100%" data-outlook-trace="F:1|T:1" \
src="cid:1848e03a52b73fdc1cb1"><br> </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> I tried it with both a \
QTableWidget and a QTableView with a custom model, no difference in the slow \
resizing.<br> </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> Is there a way to fix this slow \
resizing?</div> <div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> Thanks</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0); background-color:rgb(255,255,255)"> Matic<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="x_gmail_signature">È difficile avere una convinzione precisa \
quando si parla delle ragioni del cuore. - &quot;Sostiene Pereira&quot;, Antonio \
Tabucchi<br> <a href="http://www.jidesk.net" \
target="_blank">http://www.jidesk.net</a></div> </div>
</body>
</html>


["python_UsmbZVpji2.gif" (image/gif)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic