.
.
Thank you !

Did you initialize your ui and did you set the pointer guiClass right? Can we see the implementation?
Qt Code:
  1. guiClass ::guiClass (QWidget *parent)
  2. : QMainWindow(parent), ui(new Ui::guiClass )
  3. {
  4. ui->setupUi(this);
  5.  
  6.  
  7. //this->ui->progressBar->setValue(80); // IT WORKS, but it is in guiClass
  8.  
  9. anotherClass *anotherclass = new anotherClass(this);
  10. anotherclass->anything();
  11.  
  12. }
  13.  
  14. guiClass ::~guiClass ()
  15. {
  16. delete ui;
  17. }
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.