Test App: Custom IoT Dashboard #468
Replies: 6 comments 8 replies
-
Files specified in the qrc files don't cause cargo only builds to recompile, meaning that i need to manually touch the qrc or another tracked file each time i want to build when i have only changed files inside the qrc file. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Custom setters (#42) or a way of listening to signals from Rust would be useful. As I have an object similar to a timer which the API would like to be MyObject {
running: true
} But instead this needs to be MyObject {
Component.onCompleted: start()
} |
Beta Was this translation helpful? Give feedback.
-
When trying to create a |
Beta Was this translation helpful? Give feedback.
-
We should consider if a Rust file specified from the build script that has no bridge should be an error in the build script, or just a warning that can be ignored ? |
Beta Was this translation helpful? Give feedback.
-
Eg let qt_thread = self.qt_thread();
tokio::spawn(async move {
...
let read_future = read.for_each(|message| async move { // or async it complains about no Sync
qt_thread.queue(...); // with async move this complains about no Copy
}
}); This fails because Instead this needs to be changed to the following structure let qt_thread = self.qt_thread();
tokio::spawn(async move {
...
let read_future = async move {
while let Some(message) = read.next().await {
qt_thread.queue(...);
}
}
}); Which is fine and works with our current code. Just something to consider if we could / would want to add Copy / implement Sync to CxxQtThread or not. Maybe we don't and this is OK as trying to prove that that is safe might be tricky ? |
Beta Was this translation helpful? Give feedback.
-
Similar to #371 i'm using CXX-Qt to build a test app and will note things that i find wrong/tricky in here.
The app is a QML dashboard for communicating using WebSockets to other services that are on the same device or other devices on the network.
Beta Was this translation helpful? Give feedback.
All reactions