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.
Where we need to have an overload in cxx-qt-lib, eg from QColor and the enum. Then this should allow Rust code to have any of the types.
QPainter::setPen
can take QColor or QPen or an enum. Acceptimpl AsRef<QPen>
then implement IntoThere 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.