I want to access a functional member of a parent widget from it's child widget, the way i was doing is like
from the child widget
but the compiler says "class QWidget has no member named publicMethod"Qt Code:
this->parentWidget()->publicMethod();To copy to clipboard, switch view to plain text mode
so, how can i access the public method of the parent?
I have checked that parentWidget() returns the pointer to the parent widget with the objectName() property so i have parented the child correctly
thanks
Bookmarks