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
Where we need to have an overload in cxx-qt-lib, eg QPainter::setPen can take QColor or QPen or an enum. Accept impl AsRef<QPen> then implement Into from QColor and the enum. Then this should allow Rust code to have any of the types.
There are a few places already where we could have had overloads for QPoint, QSize etc consider doing this in those places.
Note however this will mean we need an extra impl block that then calls the direct CXX binding.
The text was updated successfully, but these errors were encountered:
Where we need to have an overload in cxx-qt-lib, eg
QPainter::setPen
can take QColor or QPen or an enum. Acceptimpl AsRef<QPen>
then implement Into from QColor and the enum. Then this should allow Rust code to have any of the types.There are a few places already where we could have had overloads for QPoint, QSize etc consider doing this in those places.
Note however this will mean we need an extra impl block that then calls the direct CXX binding.
The text was updated successfully, but these errors were encountered: