Commit Graph

5 Commits

Author SHA1 Message Date
Kai Köhne 1bc8cba0e2 Example: Use actual example name for project()
The project name is used in Qt Creator as root name for the project.
Using the same name as the documentation/example name makes it
clearer which example is actually open. Only drop prefixes like
'Qt Quick Demo - '.

Pick-to: 6.10
Change-Id: I863a23e26307a973bb04ce879d0c95c3731cdc53
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2025-07-09 08:58:58 +02:00
Kai Köhne 1aae1df0fc Doc: Move 'Window Embedding' example to UI Components category
It's not so much an application as a technology demo.

Also, add "Example" to the title, as it otherwise might conflict
with sections of the same title, like platform-integration.html#window-embedding

Pick-to: 6.10
Task-number: QTBUG-137988
Change-Id: I182eff777a5966920ee9a77ec709f8e0a25bae97
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2025-07-02 14:58:43 +02:00
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