You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by otiv-wannes-vanleemput February 28, 2024
I want to visualise a Gstreamer pipeline which runs in a Rust backed. To start off, I would like to update a QImage with the current frame outputted by the pipeline. However, I'm unable to wrap a QImage in a custom rust struct.
I tried deriving the Default trait, but this resulted in a build error. Thats why I used the constructor.
However, I still get the following build error:
error[E0369]: binary operation `==` cannot be applied to type `cxx_qt_lib::QImage`
--> src/cxxqt_object.rs:3:1
|
3 | #[cxx_qt::bridge]
| ^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `cxx_qt::bridge` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0369`.
Should I fork the repository and add the PartialEq trait to QImage, or am I using it incorrectly?
The text was updated successfully, but these errors were encountered:
This is required because when the type is a
Q_PROPERTY
we generate Rust code that has==
Discussed in #871
Originally posted by otiv-wannes-vanleemput February 28, 2024
I want to visualise a Gstreamer pipeline which runs in a Rust backed. To start off, I would like to update a QImage with the current frame outputted by the pipeline. However, I'm unable to wrap a QImage in a custom rust struct.
This is my cxxqt_object.rs file:
I tried deriving the Default trait, but this resulted in a build error. Thats why I used the constructor.
However, I still get the following build error:
Should I fork the repository and add the PartialEq trait to QImage, or am I using it incorrectly?
The text was updated successfully, but these errors were encountered: