parameters: ()
return_statement: return qapp is None or (QThread.currentThread() == qapp.thread())
docstring: Returns True iff a QApplication instance exists and the current
          thread matches the thread the QApplication was created in
docstring_summary: Returns True iff a QApplication instance exists and the current
          thread matches the thread the QApplication was created in
docstring_tokens: Returns True iff a QApplication instance exists and the current thread matches the thread the QApplication was created in
function: def is_qapp_thread():
          """Returns True iff a QApplication instance exists and the current
          thread matches the thread the QApplication was created in
          """
          qapp = QApplication.instance()
          return qapp is None or (QThread.currentThread() == qapp.thread())
function_tokens: def is_qapp_thread ( ) : qapp = QApplication . instance ( ) return qapp is None or ( QThread . currentThread ( ) == qapp . thread ( ) )