I have two Ui objects in my class header.I know that the Ui classes dont inherit form QObject.But I want to pass these objects to a function.Dynamically It will work.Question:Is there a way of passing these two different class objects?(Ex:QPushButton and QLabel.... can be passed as QWidget...)