<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><span>------ Original Message ------</span></div><div>
<div>From "Charles" <<a href="mailto:peacech@gmail.com">peacech@gmail.com</a>></div>
<div>To "John Sturtz" <<a href="mailto:john@sturtz.org">john@sturtz.org</a>></div>
<div>Cc <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a></div>
<div>Date 6/9/2025 12:20:29 PM</div>
<div>Subject Re: Re[2]: Customize QMenu display with QProxyStyle</div></div><div x-em-quote=""><br /></div>
<div id="xcb6327ed63f74e8"><blockquote cite="CABthHP8iiz_R0FC=Des8zYM=719Gqp6KiUwr5Qk1-HoZ54-9yw@mail.gmail.com" type="cite" class="cite2">
<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">QProxyStyle automatically proxies to the used application style. </div></div></blockquote><font size="3" style="font-size: 16px;">I wondered if that mightn't be the case.  That's fortunate.</font><br /><br /><blockquote cite="CABthHP8iiz_R0FC=Des8zYM=719Gqp6KiUwr5Qk1-HoZ54-9yw@mail.gmail.com" type="cite" class="cite2"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-family: "Segoe UI"; font-size: 12pt;">I</span><span class="gmail_default">f you want rounded corners you need to port the whole C code in the</span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">OS style plugin that draws the menu item.</span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br /></span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Alternatively, use the fusion style which should be OS independent.</span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">With fusion style, overriding drawItemText should work.</span></div></div></blockquote>Actually, I didn't particularly want rounded corners, although I'm not sure I care that much.</div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8">If I set fusion for the whole app [<font face="Cascadia Code">app.setStyle('Fusion')</font>], I don't get rounded corners by default.  But if I apply the proxy style, then I do.</div><div id="xcb6327ed63f74e8">If I don't set fusion for the whole app, I get rounded corners either way.</div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8">And here's another interesting factoid:  It seems that just the act of trying to create a proxy style based on the existing style causes a crash.  This statement:</div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8"> <font face="Cascadia Code" size="3" style="font-size: 16px;">   self.style = Style(file_menu.style())</font></div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8">makes the app crash on exit, even if I never actually use the created proxy style.</div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8">Anyway, thanks again for your help.  All this gives me plenty to go forward with.</div><div id="xcb6327ed63f74e8"><br /></div><div id="xcb6327ed63f74e8">/John</div><div id="xcb6327ed63f74e8"><br /></div>
</body></html>