How to update promoted widget of new window when show it?
-
@beqa
Yes it is.
You cannot acces newwindows ui directly so other option is to add
access function for what you want to do to the Widget from outsidevoid newWindow::setSomeText( ... ) {
ui->widget->setText(..)
}and then
newWindow->setSomeText("whatever");
newWindow->show();That helps keep the code going too spaghetti and all the outside needs to know about
newWindow is what it can set or get for others. The outside should not know anything from ui::
as it makes better code.