# the following prints if clipboard is empty if QApplication.clipboard().text(): print("Clipboard is NOT empty") else: print("Clipboard is empty")