PYQT5 progress bar in new dialog

Hello guys, i was wondering.
I’m creating a python desktop app with pyqt5. And i need to create a progress bar, that will open in a new dialog and i will update the progress bar status from the calculations that i will perform in another class.
How is this possible?