C++ data didn't update in Qml
-
@dziko147 said in C++ data didn't update in Qml:
@KroMignon No ,
Can you suggest a method ?I don't understand what you mean, please be more clear.
No what?- No you don't have change the update method?
- After changing the update method, the QML didn't be update?
-
@KroMignon the update method is in another class .
So how can get this m_back :)
i am really new in Qt developpment .
So excuse meif my question is stupid :) -
@dziko147 said in C++ data didn't update in Qml:
the update method is in another class .
So how can get this m_back :)
i am really new in Qt developpment .
So excuse meif my question is stupid :)I don't want to hurt you, but this has nothing to do with Qt, this is C++ basic.
Do you have any knowledge about C++ programming?
Do you know what is a class?
Do you know what is a class method or member?Please take time to got basic knowledge about the programming language you want to use.
There are many C++ tutorials available, take one and do at least the first step to understand what you are doing.Basic C++ knowledge is mandatory if you want to program with Qt which is a C++ framework.
-
@KroMignon ok i will :)
but can you provide a way to create this m_back instance :) -
@dziko147 said in C++ data didn't update in Qml:
but can you provide a way to create this m_back instance :)
-
@KroMignon I know how to use class/object .
I know how to manipulate c++ .
But my problem is how can get this in my second classm_ui->quickWidget->rootContext()->setContextProperty("backend", &m_back);
-
@dziko147 said in C++ data didn't update in Qml:
So my problem is how can i get the m_back in the commande.cpp
Again, this is C++ basic => variable scope and life-cycle: