I am new to Qt and consider myself fairly new to development having recently returned to the field after many years. I was tasked with learning how to unit test gui fucntions. I have read copied and run the QString example in the tutorial. However, I dont get the overall picture on how to test a function written outside of my test project. I wrote a simple gui that writes to a textlable after a pushbutton click. How do I test this as the code does not reside in my test project. Is there a document or tutorial that gives the overall picture? Think total newbie? Thanks!


Here is the code for the gui:

void MainWindow:n_pushButton_clicked()
{
ui->label->setText("Hello World");
}