An AFM controller implemented by QT