Your class must be inherit from QThread instead QObject and you also should reinplement protected method run() where must bee your needed for threading code. Read documentation !