<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div><div class="gmail_quote"><div>Thank you for your reply, but it doesn't really answer my question.</div><div> <br></div></div></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="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>One thing is that I don't think being public or protected or private is important for overridden methods. They will behave the same way regardless as far as virtualness and being overridden are concerned. The only thing that changes is who can invoke them.</div></div></blockquote></div></blockquote><div><br></div><div>That's exactly my point: I know I can override a protected non virtual method, but that would only be "just another method" that will only be called when explicitly called by me: I could even name it in any other way, and that won't change anything.<br></div></div><div>The problem is about methods that are invoked by Qt itself, like those I reported: QItemDelegate.drawBackground or QComboBox.initStyleOption. If they are implemented, they are never used by Qt, and can only be explicitly called by python code.</div><div><br></div><div>Thank you anyway,</div><div>Maurizio</div>-- <br><div dir="ltr" class="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div></div>