Forum Discussion
Is there a direct child object under Aliases.MyApplicationName.Settings that is "QtObject("abc")"? If there is not, then the error you get is correct. Note that the "WaitQtObject" assumes that the object you're waiting fir is a DIRECT child of the parent object (in your case, Settings). If there are any other objects in the tree between Settings and QtObject("abc"), you'll get that error.
Hi Robert,
You are correct, "QtObject("abc")" is not a direct child of "Aliases.MyApplicationName.Settings". It is more like this:
var checkBox = Aliases.MyApplicationName.Settings.QtObject("firstChild").QtObject("secondChild").QtObject("thirdChild").WaitQtObject("abc", 2000);
I also tried it this way but it still gives me "object does not exist" error.
var parent = Aliases.MyApplicationName.Settings.QtObject("firstChild").QtObject("secondChild").QtObject("thirdChild");
var checkBox = parent.WaitQtObject("abc", 2000);
Thanks.
Related Content
- 4 years agoJackalNZZ
Recent Discussions
- 11 hours agosimonaferrara
- 20 hours agoSubhraDas