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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.