What OS does it happen on?
I would be guessing invalid scene pointer but you're saying that you're able to addRect() on it.
Cna you create compilable example of the issue (without using UI files)?
What OS does it happen on?
I would be guessing invalid scene pointer but you're saying that you're able to addRect() on it.
Cna you create compilable example of the issue (without using UI files)?
I figured out the problem. It's not reflected in the example I put up here, but in my code I was getting the items from one scene and adding it to the main scene. It some instances, that first scene wasn't getting initialized before the method was called, which caused the error. So it was an invalid pointer.
Thanks for the tip!
Bookmarks