Hello Folks,

I have a question:

I have created a project in Qt, and created a gui.

so now i have the following:
headers:
mainwindow.h
myfunction.h

sources:
mainwindow.cpp
myfunction.cpp

forms:
mainwindow.ui


In my mainwindow.cpp, i call the function myfunction.cpp. And everything is fine and does what is suppose to do.

My question is:
I want to control and update some Qlabels in mainwindow.h, how can i do that ? I know i can control the GUI through mainwindow.cpp but can i do some updates through myfunction.cpp ?


Please kindly advice,