Hi, I need to link the data from the classes connected to the backend, for example I have this class where it receives the data from the server through this method:
Qt Code:
void ClientServices::readyRead() { int code = 0; double pCost = 0; double pPublic = 0; in >> code >> pCost >> pPublic; qDebug() << code << pCost << pPublic; }To copy to clipboard, switch view to plain text mode
the Backend is declare in this mode:
qmlRegisterType<Backend>("io.qt.Backend", 1, 0, "Backend");
can I do?
I think to do with the Q_Property but but I wouldn't go for the backend anymore. In practice I have to fill in text boxes with variable :
code >> pCost >> pPublic;
see my schema:
Property.jpg
Bookmarks