Difficulty displaying frame around QTreeView

John Sturtz john at sturtz.org
Tue Sep 23 16:33:40 BST 2025


------ Original Message ------
>From "Maurizio Berti" <maurizio.berti at gmail.com>
To "John Sturtz" <john at sturtz.org>
Date 9/23/2025 8:05:38 AM
Subject Re: Re[2]: Difficulty displaying frame around QTreeView

>Il giorno sab 20 set 2025 alle ore 06:20 John Sturtz <john at sturtz.org> 
>ha scritto:
>>>After that, if you're not certain if the display scaling may be 
>>>related, the simplest solution is to simply change your display 
>>>settings and see what happens.
>>Yes, that thought occurred to me just after I posted.  And I found 
>>that the frame seems to show properly for 100% and 200%, but not for 
>>the values in between (125%, 150%, 175%).  I think it's more than a 
>>little suspicious that the aberrant behavior is occurring with the 
>>non-integer scale factors.
>>[ ... ]
>>Yikes.  So basically, abandon all hope ye who enter here.  Perhaps my 
>>better strategy would be to just forget about the 
>>automatically-created frame and just draw borders manually.
>
>What Qt (not PyQt) version are you using?
>I've just found out about https://bugreports.qt.io/browse/QTBUG-100538 
>which seems to match your problem, but it should've been solved since 
>6.5.1 and 6.6.0.
I'm using 6.8.0.

/John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250923/7cdb9d2c/attachment.htm>


More information about the PyQt mailing list