Thank buddy for your searching ! But could you please share how do you implement in mainwindow?

I am using a qtextedit in my mainwindow where I want to zoom and when I implement by creating an instance of this class i am getting errors.

Thank you.