Qt 6.11 is out! See what's new in the release
blog
How can I represent a char from Qt as a string of bits in binary in Qml?
-
I have a char type that I need to represent as a byte (string of 8 bits) in Qml. How can that be achieved?
Currently, I have this function
QString statusBinary() { return QString::number((int)_status, 2); }as a public slot and exposed to Qml (I can call the function from Qml without any errors), but the result is always 0._statusis a char, btw. Even though I can see the value is changing. What am I doing wrong? -
Hi,
What is the value of
_status?