Well,
It was a similar nasty mistake :-)
The viewController is the parent object of the view class and i used the wrong cast
View::ViewController viewController = qobject_cast<View::ViewController>(this->parent()); // of course wrong because parent() returns a pointer
View::ViewController *viewController = qobject_cast<View::ViewController*>(this->parent()); // this is correct...
View::ViewController viewController = qobject_cast<View::ViewController>(this->parent()); // of course wrong because parent() returns a pointer
View::ViewController *viewController = qobject_cast<View::ViewController*>(this->parent()); // this is correct...
To copy to clipboard, switch view to plain text mode
In fact there was no Compiler error and the Controller and the engine object was filled, but pointed anywhere in the memory
It works now!
Thank You!
Bookmarks