Instantiating a cxx-qt QObject type on the Rust side #1008
-
Hi all, I have the following quite simple cxx-qt Rust object, which works fine when used through QML:
Now I figured it would be nice to unit-test this class with the "cargo test" approach, because such tests would be faster than QML tests and wouldn't require writing C++:
But running Is there a way to either instantiate a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok, so initially I didn't find any answer but on a closer search I stumbled on: This suggests there is no solution at the moment except manual solutions such as custom c++ factory functions exposed to rust, but it is a topic being worked on. Edit: see workaround in the replies to this answer. |
Beta Was this translation helpful? Give feedback.
Ok, so initially I didn't find any answer but on a closer search I stumbled on:
#694
This suggests there is no solution at the moment except manual solutions such as custom c++ factory functions exposed to rust, but it is a topic being worked on.
Edit: see workaround in the replies to this answer.