Commit Graph

3 Commits

Author SHA1 Message Date
Morten Sørvig 4c9f150c9b Add windowembedding wasm test case
This uses the "Cally" JS calendar component as the
native window, since the built in calendar input displays
the calendar as a popup and not on the input element
itself.

The native calendar element is created from JavaScript,
ownership is then passed to emscripten::val on the C++
side:

   element -> EM_VAL -> emscripten::val

Alternatively, the calendar could also have been created
from C++ using code like

   val calendar = val::global("document").call<val>("createElement", std::string("calendar-date"));
   calendar["innerHTML"] = std::string("<calendar-month></calendar-month>");

We create a copy of the calendar val on the heap in order
to be able to pass a pointer to fromWinId() which does not
become stale when the function returns.

Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Change-Id: Ib68e82f01dc1c489b847b794aa09d6ccc9986157
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2025-03-26 14:59:04 +01:00
Kai Köhne 8d6b46efa3 Disambiguate 'Qt Quick', Qt Widgets', 'Qt Gui' links
qdoc does consider section titles implicit anchors. Adding a
'Qt Quick' section thererfore had the effect that links to 'Qt Quick'
in other pages started pointing to this section, instead of the Qt Quick
module landing page.

Avoid this conflict by making the section title more descriptive.

Pick-to: 6.8
Fixes: QTBUG-129569
Change-Id: I7b1805b2f0cf9ebb65f71a259600b6554db2dc33
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 60e04b1d67)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-10-01 19:07:06 +00:00
Tor Arne Vestbø a93c15b4ca Add Embedded Windows example
The example showcases window embedding on macOS, Windows, X11 (using
GTK), iOS (and visionOS), and Android, using both Qt Gui, Qt Widgets,
and Qt Quick.

Pick-to: 6.8 6.8.0
Change-Id: Iaa61eb3556ce2293371a3e127906378ac077c553
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2024-09-18 00:04:13 +02:00