now i want to control its visibility w the help of an external class in another file i saw that i can inherit the : MainWindow in a class and i can access the elements however i tried changing the visibility and opacity at a certain point and it didnt work, in 2 ways