mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Document behaviour of globals when exporting multiple components
Fixes #5467
This commit is contained in:
parent
1811832495
commit
e36eb6aba6
5 changed files with 17 additions and 2 deletions
|
@ -35,7 +35,8 @@ cpp_index_common_prefix = ["slint::", "slint::interpreter::"]
|
|||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = ["breathe", "myst_parser", "exhale", "sphinx_markdown_tables", "sphinxcontrib.jquery"]
|
||||
extensions = ["breathe", "myst_parser", "exhale",
|
||||
"sphinx_markdown_tables", "sphinxcontrib.jquery"]
|
||||
|
||||
breathe_projects = {"Slint": "./docs/xml"}
|
||||
breathe_default_project = "Slint"
|
||||
|
@ -108,7 +109,7 @@ html_show_sourcelink = False
|
|||
html_logo = "https://slint.dev/logo/slint-logo-small-light.svg"
|
||||
|
||||
myst_enable_extensions = [
|
||||
"html_image",
|
||||
"html_image", "colon_fence"
|
||||
]
|
||||
|
||||
# Annotate h1/h2 elements with anchors
|
||||
|
|
|
@ -141,3 +141,8 @@ previous section, you can access `Logic` like this:
|
|||
return SharedString(arg);
|
||||
});
|
||||
```
|
||||
|
||||
:::{note}
|
||||
Global singletons are instantiated once per component. When declaring multiple components for `export` to C++,
|
||||
each instance will have their own instance of associated globals singletons.
|
||||
:::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue