Skip to content

Commit 9ea5a60

Browse files
Update book
1 parent ebff4bd commit 9ea5a60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/src/concepts/casting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ SPDX-License-Identifier: MIT OR Apache-2.0
99

1010
With the [base](../bridge/attributes.md) attribute, it is possible to inherit from another type.
1111
In order to access this parent class, we provide an API to cast up or down.
12-
Currently, this is only supported for objects in `extern "RustQt"` blocks, which have either a `#[qobject]` attribute,
12+
Currently, this is supported for objects in both `extern "RustQt"` *and* `extern "C++Qt"` blocks, which have either a `#[qobject]` attribute,
1313
or a `#[base = T]` attribute. see [here](../bridge/attributes.md) for more details on these attributes.
14+
> Note: Types in "C++Qt" blocks are **required** to have the `#[qobject]` attribute
1415
1516
## Accessing the base class
1617

0 commit comments

Comments
 (0)