Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt5 Compiler Error: 'QtQuick': No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Qt5 Compiler Error: 'QtQuick': No such file or directory

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PogoMips2
    wrote on last edited by
    #1

    Hi everyone.

    So I just installed Qt 5.1.1 and created a small QtQuick 2.0 app. This works fine and all but now I want to embed this app in a Qt-GUI-Application so I can interact with it via C++

    Therefore I created a new Qt-GUI-Application in the Qt Creator. This is how my code looks like:

    @#include <QApplication>
    #include <QtCore>
    #include <QtQuick>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QQuickView viewer;
    viewer.setSource(QUrl::fromLocalFile&#40;"file.qml"&#41;&#41;;
    viewer.show(&#41;;
    
    return a.exec(&#41;;
    

    }@

    I also added QT += quick in the .pro file.

    @#-------------------------------------------------

    Project created by QtCreator 2013-10-15T17:54:42

    #-------------------------------------------------

    QT += core gui
    quick

    TARGET = IntegratedPowerSupply
    TEMPLATE = app

    SOURCES += main.cpp

    HEADERS +=

    OTHER_FILES +=
    ../../PowerSupply/PowerSupply/file.qml@

    But all I get is the following error message as soon as I want to built it:

    ..\main.cpp:3: Error:C1083: Cannot open include file: 'QtQuick': No such file or directory

    How can I solve this?

    Again, I'm using Qt 5.1.1 on Windows 7

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved