-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extern "Qt"
- allow signals on existing Qt classes
#527
Comments
For both signals, and inherit, we'll want to use |
My question would then be, what happens for foreign QObjects ? eg |
We should figure out the larger question around T vs TQt and whether we want an extern "Qt" block in #531 first. |
extern "Qt"
- allow signals on existing Qt classes
For results, see #555. TL;DR: We'll want to introduce an |
This can be combined into #577 |
Close in favour of #577 |
In #485 we start adding support for (dis)connecting in Rust, this works for QObjects defined in Rust.
However a QObject could be defined outside of Rust and we might want to (dis)connect from it's signals.
A possible solution would be to explore having an
extern "Qt"
block again, and then changing signals away from an enum to methods.This would keep the way of defining a signal consistent to Rust and C++ QObjects, which then means the generation is the same for generating
on_SIGNAL
.For the emit side we would likely need to consider removing converters #289 or the Rust
my_signal
would be renamed in CXX to theemitMySignal
that performs any conversion.I also wonder would we then put the
inherit
macro in this block too ?Guess one of the questions with that would be, is it
qobject::MyQObject
orMyQObject
for the type ?cc @LeonMatthesKDAB
The text was updated successfully, but these errors were encountered: