wait for backend c++ in qml
up vote
0
down vote
favorite
I have a qml
frontend and c++ backend.
User enters numbers in frontend and the program send it to the backend.
Then it resend the answer to qml
and qml show it.
But I have a problem:
When I run the program the qml
doesn't wait for backend value and when a person enter number, it shows undefined number, before backend read numbers.
How can I impel the qml
item to wait until backend sends response (just qml items who showing the answer)
Update:
I have a connection block like this :
Connections
target: receiver
onSendToQml:
properyExample = "c"
When i change a propery in block ( on send to qml ) program crashed .
How can fix it ? i receive my backend variable in it but i can't enter it
to a property .
c++ qt qml
|
show 1 more comment
up vote
0
down vote
favorite
I have a qml
frontend and c++ backend.
User enters numbers in frontend and the program send it to the backend.
Then it resend the answer to qml
and qml show it.
But I have a problem:
When I run the program the qml
doesn't wait for backend value and when a person enter number, it shows undefined number, before backend read numbers.
How can I impel the qml
item to wait until backend sends response (just qml items who showing the answer)
Update:
I have a connection block like this :
Connections
target: receiver
onSendToQml:
properyExample = "c"
When i change a propery in block ( on send to qml ) program crashed .
How can fix it ? i receive my backend variable in it but i can't enter it
to a property .
c++ qt qml
5
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
1
UI should be prepared for this scenario. For example you should show a loading icon or a spinner inQML
until result is available.
– Marek R
Nov 9 at 12:54
1
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a qml
frontend and c++ backend.
User enters numbers in frontend and the program send it to the backend.
Then it resend the answer to qml
and qml show it.
But I have a problem:
When I run the program the qml
doesn't wait for backend value and when a person enter number, it shows undefined number, before backend read numbers.
How can I impel the qml
item to wait until backend sends response (just qml items who showing the answer)
Update:
I have a connection block like this :
Connections
target: receiver
onSendToQml:
properyExample = "c"
When i change a propery in block ( on send to qml ) program crashed .
How can fix it ? i receive my backend variable in it but i can't enter it
to a property .
c++ qt qml
I have a qml
frontend and c++ backend.
User enters numbers in frontend and the program send it to the backend.
Then it resend the answer to qml
and qml show it.
But I have a problem:
When I run the program the qml
doesn't wait for backend value and when a person enter number, it shows undefined number, before backend read numbers.
How can I impel the qml
item to wait until backend sends response (just qml items who showing the answer)
Update:
I have a connection block like this :
Connections
target: receiver
onSendToQml:
properyExample = "c"
When i change a propery in block ( on send to qml ) program crashed .
How can fix it ? i receive my backend variable in it but i can't enter it
to a property .
c++ qt qml
c++ qt qml
edited Nov 9 at 17:07
asked Nov 9 at 12:45
Ngelo.simon
11
11
5
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
1
UI should be prepared for this scenario. For example you should show a loading icon or a spinner inQML
until result is available.
– Marek R
Nov 9 at 12:54
1
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08
|
show 1 more comment
5
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
1
UI should be prepared for this scenario. For example you should show a loading icon or a spinner inQML
until result is available.
– Marek R
Nov 9 at 12:54
1
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08
5
5
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
1
1
UI should be prepared for this scenario. For example you should show a loading icon or a spinner in
QML
until result is available.– Marek R
Nov 9 at 12:54
UI should be prepared for this scenario. For example you should show a loading icon or a spinner in
QML
until result is available.– Marek R
Nov 9 at 12:54
1
1
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225971%2fwait-for-backend-c-in-qml%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5
Signals/Slots maybe
– Redanium
Nov 9 at 12:47
1
UI should be prepared for this scenario. For example you should show a loading icon or a spinner in
QML
until result is available.– Marek R
Nov 9 at 12:54
1
You can create properties in the c++ backend and use it from qml frontend. There is a good documentation about this: doc.qt.io/qt-5/qtqml-cppintegration-topic.html
– Peter
Nov 9 at 13:02
i integrated the file . i have a function in backend but qml has all thread but i want out a part of qml from thread . can you write a example a qml file receive a number then send to c++ and then qml show the answer ? my problem is qml not wait to run backend and show answer before running the backend function . tnx
– Ngelo.simon
Nov 9 at 15:56
see the update , it's my main problem
– Ngelo.simon
Nov 9 at 17:08