I have two classes: A and B.

Class A contains all the user interface (QPushButtons, QTextEdit, ...), while class B contains the implementation and functionallity of the program.

How can B for example change the text of a button in class A ?