Open Be-ing opened 1 year ago
We only pass in the major Qt version at the moment and the QQmlApplicationEngine method is since a minor version.
I'm going to look at exposing Qt major, minor, micro versions to the app developer as well, so I'll combine that into one change :-)
QAnyStringView is a new class in Qt6 that is being used in new Qt APIs that take string arguments, for example QQmlApplicationEngine::loadFromModule. It supports UTF-8 strings, so it may be possible to implement cheap conversion from Rust &str to QAnyStringView without needing to copy data or convert to UTF-16 for a QString first.