code: def apply_zoom_factor(self):
          
          if hasattr(self, 'setZoomFactor'):
              # Assuming Qt >=v4.5
              self.setZoomFactor(self.zoom_factor)
          else:
              # Qt v4.4
              self.setTextSizeMultiplier(self.zoom_factor)
docs: Apply zoom factor