I need to call objects of a QMainWindow from another class but I can not find a way to make it work. This is a minimal example of the problem:
QMainWindow
import