Convert QTextCharFormat to QJsonValue

46 views Asked by At

I have to convert a QTextCharFormat to a QJsonValue because it has to be transmitted from a client to a server in a Json message, but I have no idea how to do it. Can anyone help me out?

1

There are 1 answers

0
taimoor1990 On

If its a qtquick app you can use javascript function between the qml code and get the returned json var from the js function.

Convert QtextCharFormat to a char and then pass it to js function.