I was trying the following PyQt5 code from the answers in Singleshot: SLOT with arguments:
from PyQt5 import QtCore
QtCore.QTimer.singleShot(1, self, QtCore.SLOT(recall(arg1)), arg1)
But I get an error about the QtCore.SLOT
part that says:
Undefined variable from import: SLOT
I'm new to PyQt5, and I am wondering:
Is this error due to version differences between PyQt 4 and 5?
What's the right way of writing it in PyQt5?