npub1uz…c06u5 on Nostr: Trying to dynamically load and call a C++ shared library is some serious challenge. ...
Trying to dynamically load and call a C++ shared library is some serious challenge.
mangled names everywhere, vtable shenanigans and if dealing with Qt also qobject/qmetaobject weirdness...
But it works! I am able to dynamically create a QApplication, spawn a QWebEngineView, set some parameters and create a fake QObject class to receive some events.
All without linking to Qt directly, and compatible with both Qt5 and Qt6.
This way if the system does not have gtk3 webkit, Qt is fallback.
🎉
Published at
2024-09-02 23:05:45Event JSON
{
"id": "810d9a21508eb4154ae38082cd74b7fc87bbde810d0a3ad9b128d6276af34d5b",
"pubkey": "e08ca29c7b1366058315c15296abb1b596d0e8084ba94ffc96c6a366e0af04b8",
"created_at": 1725318345,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.falktx.com/@falktx/113070463073460184",
"web"
],
[
"proxy",
"https://mastodon.falktx.com/users/falktx/statuses/113070463073460184",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.falktx.com/users/falktx/statuses/113070463073460184",
"pink.momostr"
],
[
"-"
]
],
"content": "Trying to dynamically load and call a C++ shared library is some serious challenge.\n\nmangled names everywhere, vtable shenanigans and if dealing with Qt also qobject/qmetaobject weirdness...\n\nBut it works! I am able to dynamically create a QApplication, spawn a QWebEngineView, set some parameters and create a fake QObject class to receive some events.\nAll without linking to Qt directly, and compatible with both Qt5 and Qt6.\n\nThis way if the system does not have gtk3 webkit, Qt is fallback.\n\n🎉",
"sig": "40928eb7071911e6d7dc6fccc544d98872a8221abfc5eec4a43c04d51bff7981050e41c1e1e99ac2ae7523ba87dec98bb6eb0ffd5a1c7999ff0e4593e186d78e"
}