such errors appear when you try to access c.listOfA too early before it has a proper value assigned
Sorry, everything is ok now. It's not about the typo in the forum, but in my project.
Tried to build minimal working example -- working without any problems.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.