Ui can only be referenced in mainwindow.c
-
ui is a privet pointer in a MainWindow class.
If you want to update a content of ui from another class then you
need to add a signal to a ticker class and emit that signal each time when you need to update a content of MainWindow::ui or you need to pass ui to that class. In the later case you will have to maintain ui from two classes which is not very good idea.