On 2026-11-30, Volker Hilsheimer via Development <[email protected]> 
wrote:
> As I understand the situation:
> 
> - if we remove the virtual override for 6.12.2, then code built against 
> 6.12.1 and explicitly calling QMenu::resizeEvent will experience a dynamic 
> link-time error when running against 6.12.2

Not just explicitly. There is also various implicit ways of getting
there. Subclassing QMenu will among other things also get there.

> - if we leave the virtual override in, then we have to make sure that it not 
> being called is not harmful (ie. other code doesn’t rely on its side effects)
> 
> That is done by moving the implementation into QMenu::event, but leaving an 
> empty resizeEvent() override in place.
> 
> https://codereview.qt-project.org/c/qt/qtbase/+/789816 moves the 
> implementation to the event() override, and removes the resizeEvent(). 
> Leaving the resizeEvent() as empty in would fix the link-time problem when 
> running a 6.12.1-compiled binary with 6.12.2.

This was also my suggested solution. Thanks for submitting it. I've
+1'ed it (that's all I can)

/Sune

-- 
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to