Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QML slot value not access out side function
m.azeemanwar last edited by
hi , please help me i receive a slot (function) in qml file when but function value cant access out side function as playerTurnName is class variable
but it return empty string my code is :
property string playerTurnName: ""
console.log("i m comming from c++ file other player name is "+str)
playerTextField.text = str
console.log("Player Display name "+ playerTurnName )
playerTurnName value is successfully print in function ...bt not outside
thankx in advance please help me
[EDIT: code formatting, please wrap in @-tags, Volker]
goetz last edited by
I've removed the comment doubling the original post.