<html><head><style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] {  list-style-position: inside;}
body { font-family: 'Segoe UI'; font-size: 12pt; }
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }
a.em-mention[href] { text-decoration: none; color: inherit; border-radius: 3px; padding-left: 2px; padding-right: 2px; background-color: #e2e2e2; }
._em_placeholder {color: gray; border-bottom: 1px dotted lightblue;} ._em_placeholder:before{color:gray; content: '{{ ';} ._em_placeholder:after{color:gray; content: ' }}';}
--></style></head><body><div>------ Original Message ------</div><div>
<div>From "Maurizio Berti" <<a href="mailto:maurizio.berti@gmail.com">maurizio.berti@gmail.com</a>></div>
<div>To "John Sturtz" <<a href="mailto:john@sturtz.org">john@sturtz.org</a>></div>
<div>Date 9/23/2025 8:05:38 AM</div>
<div>Subject Re: Re[2]: Difficulty displaying frame around QTreeView</div></div><div x-em-quote=""><br /></div>
<div id="xca695a0a8a16460"><blockquote cite="CAPn+-XQ_vVqdQVACPc29JPqJ=iZ0BX+-Otyyc0vWc6sYfXnp9g@mail.gmail.com" type="cite" class="cite2">
<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Il giorno sab 20 set 2025 alle ore 06:20 John Sturtz <<a href="mailto:john@sturtz.org">john@sturtz.org</a>> ha scritto:<br /></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1669442267777228602"><div><div id="m_-1669442267777228602xec17e5d2e05f46c"><blockquote cite="http://CAPn+-XTw+XJC-c56MsaRSJd8qrD9Fg6XCHc9ePMHuwFfZ4XHyg@mail.gmail.com" type="cite" class="m_-1669442267777228602cite2"><div dir="ltr"><div><div>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.</div></div></div></blockquote>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.</div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[ ... ] <br /></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1669442267777228602"><div>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.</div></div></blockquote><div></div><div><div><br /></div><div>What Qt (not PyQt) version are you using?<br /></div><div>I've
 just found out about 
<a href="https://bugreports.qt.io/browse/QTBUG-100538">https://bugreports.qt.io/browse/QTBUG-100538</a> which
 seems to match your problem, but it should've been solved since 6.5.1 
and 6.6.0. </div></div></div></div></blockquote><div id="xca695a0a8a16460">I'm using 6.8.0.</div><div id="xca695a0a8a16460"><br /></div><div id="xca695a0a8a16460">/John</div><blockquote cite="CAPn+-XQ_vVqdQVACPc29JPqJ=iZ0BX+-Otyyc0vWc6sYfXnp9g@mail.gmail.com" type="cite" class="cite2"><div dir="ltr"><div dir="ltr" class="gmail_signature"></div></div>
</blockquote></div>
</body></html>