The most important thing: QT += widgets in your pro file. Otherwise the port itself is pretty painless, see here