QString .arg() operation
-
Does anyone know of any documentation on how .arg() works in QML. How much of the functionality from C++ has been ported into QML, i.e. can I use .arg(integerVar, 2, 16, '0') to get hex output? I'm asking about Qt5.15 currently, but also would like to know if the functionality has been improved in Qt6.x.
Regards,
Greg Wilson-Lindberg -
It's not much but maybe will help: https://doc.qt.io/qt-5/qml-qtqml-string.html#arg-method
-
I've seen that and also found something online that indicated that you could pass a field width argument and if it was negative it would left align. I was really more interested in other things that you can do with C++ arg's, such as converting the base of a numeric argument.
Thanks,
Greg