How I can access my label?
-
It's a pointer, you can pass it around as any other variable - copy, make a function parameter, create a signal-slot connection... you choose.
A kinda basic approach would be to crate public "setter" method in your MainWindow and call it from wherever you want it. -
Of a setter function? C'mon... ;)
@
void MainWindow::setSomeLabelText(QString text)
{
ui.label->setText(text);
}
@