Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
Description
Sometimes it might make sense to interact with QML stuff directly from c++ and set some of the enum/flag properties from there. As those classes are not public, one would have to use private API which is not desirable. Or QMetaObject, which is not as type safe.
Maybe these values (at least of more mature types) could be mirrored in a new public class/namespace specific to them so that one could more easily set the values from c++ side.
I mean maybe something like:
QObject* image = ...
image->setProperty("fillMode", QtQuick::Image::Pad);