Is there a way to use any C++ function as a Qt slot, without having its class inheriting from QWidget?
It is enough to inherit QObject: http://qt-project.org/doc/qt-4.8/signalsandslots.html