docs: def setDocument(self, filename, empty=""):
          """Sets the HTML text to be displayed. """
          self._source = QUrl.fromLocalFile(filename)
          if os.path.exists(filename):
              self.viewer.setSource(self._source)
          else:
              self.viewer.setText(empty)