https://bugs.kde.org/show_bug.cgi?id=479679

Gleb Popov <6year...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |6year...@gmail.com

--- Comment #26 from Gleb Popov <6year...@gmail.com> ---
(In reply to Fabian Vogt from comment #23)

Thanks for the analysis! This is how I understand the problem:

Qt ships a bunch of plugins (dynamically loadable modules). Some private
classes have methods returning std::any. Then KDE code includes these headers,
calls those methods and tries to dispatch the returned std::any.

If I understand it correctly, KDE code shouldn't really do that, despite the
fact that it works for libstdc++ and its RTTI implementation.

I also noticed this method
https://github.com/qt/qtbase/blob/0e65c2ce665aea78890afe86ad533ce975f01e0a/src/plugins/platforms/wayland/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp#L484-L494
It looks more like an intended way to do dispatching, because it returns the
object itself rather than std::any wrapper.

Maybe the proper solution to this is to introduce
QWaylandShellSurface::nativeResource() and use it in shell-layer-qt?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to