I found a solution for this problem.
The import in the QML file has to look like:
import QtQuick 2.0 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4My mistake was to import the QtQuick.Controls 2.x
I also had to delete the build folder and build it from scratch.