signals: void needToChangeText();
QObject::connect(&window, SIGNAL(needToChangeText(QString)), &dialog, SLOT(changeText(QString)));