code: def _is_qstring(message):
          
          my_class = str(message.__class__)
          my_class_name = my_class.replace('<class \'', '').replace('\'>', '')
          if my_class_name == 'PyQt5.QtCore.QString':
              return True
  
          return False
docs: Check if its a QString without adding any dep to PyQt5.