.
.
Thank you !
Did you initialize your ui and did you set the pointer guiClass right? Can we see the implementation?
guiClass
::guiClass (QWidget *parent
){
ui->setupUi(this);
//this->ui->progressBar->setValue(80); // IT WORKS, but it is in guiClass
anotherClass *anotherclass = new anotherClass(this);
anotherclass->anything();
}
guiClass ::~guiClass ()
{
delete ui;
}
guiClass ::guiClass (QWidget *parent)
: QMainWindow(parent), ui(new Ui::guiClass )
{
ui->setupUi(this);
//this->ui->progressBar->setValue(80); // IT WORKS, but it is in guiClass
anotherClass *anotherclass = new anotherClass(this);
anotherclass->anything();
}
guiClass ::~guiClass ()
{
delete ui;
}
To copy to clipboard, switch view to plain text mode
@Lykurg : I don't use SIGNALS and SLOTS because I don't know how to use them 
Moreover, I'd prefer to do it without signals and slots.
@fatjuicymole : what is a BP ?
PS: I'm a beginner.
Bookmarks