Important: Please read the Qt Code of Conduct -

---> Unable to compile and install QtQuick Desktop components

  • I was trying to learn and practice the "QtDD12 - Desktop Components for QtQuick" video available on youtube.
    I followed the linked provided with the video clip and I realised that I have to download the slides and then extra project file from "":"
    and then :
    run qmake
    make install

    My attempt to build and install the project was unsuccessful due to compilation errors.
    I am using Qt 5.1.1 on my MAC OSX 10.8.5 (64-bit) machine using clang-64.

    I got following compilation errors:
    *qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:82:28: error: no member named 'ScrollBegin' in namespace 'Qt'
    if (we->phase() == Qt::ScrollBegin)
    /qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:84:18: error: no member named 'phase' in 'QWheelEvent'
    else if (we->phase() == Qt::ScrollEnd)
    ~~ ^
    /Users/sina/Desktop/LearningQt/QML/Online Tutorial/QML Tutorial 2-QML Desktop Design Components/qt-qtquickcontrols/src/controls/Private/qquickwheelarea.cpp:84:33: error: no member named 'ScrollEnd' in namespace 'Qt'
    else if (we->phase() == Qt::ScrollEnd)
    4 errors generated.
    make[3]: *** [.obj/debug-shared/qquickwheelarea.o] Error 1
    make[2]: *** [debug-all] Error 2
    make[1]: *** [sub-controls-make_first] Error 2
    make: *** [sub-src-make_first] Error 2
    22:54:14: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project qtquickcontrols (kit: Desktop Qt 5.1.1 clang 64bit)
    When executing step 'Make' *

    I do not know if there is a pre-built version so I could install and use them otherwise how can I solve the compilation issues

  • Moderators


    You don't have to build the module yourself, or even install anything extra. The desktop components are now called "Qt Quick Controls", and are already included in Qt 5.1.

    You can find the relevant documentation at

  • Thanks for your reply
    I have a question on where can I find the youtube video clip example files (I mean the project files related to Spotify)

    I tried to build and run the examples coming with the GIT project files which I downloaded and I still get following errors:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:47 module "QtQuick.Controls" version 1.1 is not installed

    Error: Your root item has to be a Window.

    How can I fix the issue?

  • Yes, you do not have to build Qt Quick Controls yourself when you are using Qt 5.1 as it is included. Note that the demo given was using unreleased code and is unlikely to work unmodified with the released version of Qt Quick Controls as some of the API changed prior to release.

    If you are looking for the spotify backend, you can find the complete spotify client (including Qt Quick Controls UI) in this repository:

    But in order to use it you will need a valid spotify subscription and apply for an application token and a developer account at

  • Note that the error you are seeing seems related to the fact that you are using Qt Quick Controls 1.1 (from Qt 5.2 development branch) with an older version of qt. This is not in that repository so I don't know what you are referring to.

Log in to reply