title: compile Qt project, get error QQmlEngine: No such file or directory compilation terminated
body: <p>win10</p>
  
  <p>QT5.7</p>
  
  <p>I try to compile QT project through cmd </p>
  
  <pre><code>C:\Qt\Qt5.7.1\Examples\Qt-5.7\quick\demos\clocks&gt;qmake -project
  
  C:\Qt\Qt5.7.1\Examples\Qt-5.7\quick\demos\clocks&gt;qmake
  
  C:\Qt\Qt5.7.1\Examples\Qt-5.7\quick\demos\clocks&gt;mingw32-make
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>mingw32-make -f Makefile.Release
  mingw32-make[1]: Entering directory 'C:/Qt/Qt5.7.1/Examples/Qt-5.7/quick/demos/clocks'
  g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I. -IC:\Qt\Qt5.7.1\5.7\mingw53_32\include -IC:\Qt\Qt5.7.1\5.7\mingw53_32\include\QtGui -IC:\Qt\Qt5.7.1\5.7\mingw53_32\include\QtANGLE -IC:\Qt\Qt5.7.1\5.7\mingw53_32\include\QtCore -Irelease -IC:\Qt\Qt5.7.1\5.7\mingw53_32\mkspecs\win32-g++  -o release\main.o main.cpp
  In file included from main.cpp:40:0:
  ../../shared/shared.h:42:22: fatal error: QQmlEngine: No such file or directory
  compilation terminated.
  Makefile.Release:198: recipe for target 'release/main.o' failed
  mingw32-make[1]: *** [release/main.o] Error 1
  mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.7.1/Examples/Qt-5.7/quick/demos/clocks'
  Makefile:34: recipe for target 'release' failed
  mingw32-make: *** [release] Error 2
  </code></pre>
  
  <p>this is the demo example of QT, and it works well at Qt creator. but report error at cmd. and no matter which demo I compile, they all report the same error which starts at <code>../../shared/shared.h:42:22: fatal error: QQmlEngine: No such file or directory</code></p>
  
  <p>P.S.: </p>
  
  <p>actually, what I really want to do is to compile Qt project in sublime3, which failed and have no output. I began to use cmd to find the bug, and found out this error</p>
  
  <p>my build system of sublime3 follows this post<a href="https://stackoverflow.com/questions/18934646/build-system-for-qt-in-sublime-text-3-not-working">Build system for Qt in Sublime Text 3 not working
  </a></p>
  
  <p><strong>add .pro file</strong></p>
  
  <pre><code>######################################################################
  # Automatically generated by qmake (3.0) ?? 5? 29 09:05:15 2018
  ######################################################################
  
  TEMPLATE = app
  TARGET = clocks
  INCLUDEPATH += .
  
  # Input
  HEADERS += ../../shared/shared.h
  SOURCES += main.cpp
  RESOURCES += clocks.qrc
  </code></pre>
  
  <p>this is what the qt demo writes</p>
  
  <p><strong>update</strong>
  thanks to the comments, I add <code>QT += qml quick</code> in .pro file and solve the problem. although I don't know why the pro file generated by qmake -project commmand lack that statement</p>