position=input("Choose a position: ")
position=int(position)
while position not in list(range(1, 10)):
print("ONLY between 1 and 9: ")
position=input("Choose a position: ")
position=int(position)
print(f'chosen position is {position}')
g[i].push_back(...
vector<int> v;
for (int j = 0; j < n * 2 - 1; j=j*2){
v.push_back(atoi(reinterpret_cast<const char *>(str[j])));
}
g.push_back(v);
// Child.qml
Item {
id: rootItem
signal sendMessage(string msg)
//...
rootItem.sendMessage("bla bla bla")
//...
}
// Parent.qml
Item {
Child {
onSendMessage: {
// используем переменную msg для наших целей.
}
}
}