Qt 6.11 is out! See what's new in the release
blog
Parent not accessible from mainwindow what can possibly cause this?
-
I get this message from mainwindow but the parent is main.cpp and I haven't changed it in any way.
-
I get this message from mainwindow but the parent is main.cpp and I haven't changed it in any way.
@AI_Messiah
Get this message when? When you run your program? When you compile your program? On a line of code?but the parent is main.cpp
No it isn't.
main.cppis a C++ source file. Nothing to do with "parent".Your
QMainWindowis likely your top-level window. So it won't have a parent. Why/how you are trying to access its parent I don't know, but it doesn't make sense.