Can I access the widgets value from ui in other classes else mainWindow.
I want to take value from spinBox and use it into my other classe xdata class and than send the new value returned by xdata() to the mainWindow class.
something like this
ui->spinBox.value();