title: Qt 5.1 - Runtime crash
body: <p>Trying to build an example program from Qt 5.1, I get this runtime error:</p>
  
  <pre><code>Starting /Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree...
  dyld: Library not loaded: /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets
    Referenced from: /Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree
    Reason: image not found
  The program has unexpectedly finished.
  /Users/pietro/myProgs/ParamGUI/build-6_treeview-Desktop_Qt_5_1_0_clang_64bit-Debug/mv_tree.app/Contents/MacOS/mv_tree exited with code 0
  </code></pre>
  
  <p>Starting the program with the debugger, with a break point at the first instruction in main(), I get this error message (relative to a binary code location):  </p>
  
  <pre><code>The inferior stopped because it received a signal from the Operating System.  
  Signal name: SIGTRAP
  Signal meaning: Trace/breakpoint trap
  </code></pre>
  
  <p>I have no idea how to fix it.<br>
  The example was a simple one creating a tree view, from Qt documentation.
  In the qmake file I specify: <code>QT += widgets</code>  </p>
  
  <p>The error <code>Reason: image not found</code> does not refer to a bitmap image, does it?  </p>
  
  <p>Am I wrong, or many people are having issues with Qt5?</p>
  
  <p>Platform: Qt 5.1, Mac OS-X 10.7, QtCreator 2.7.2</p>
  
  <p>--- New tests ---<br>
  In the same environment:<br>
  - A "Plain C++ Project (CMake Build)" works correctly.<br>
  - A "Qt Console Application" has the same issues as the application mentioned in this question.  </p>
  
  <p>--- Project source code ---</p>
  
  <p>Pro file:</p>
  
  <pre><code>QT += core
  QT -= gui
  TARGET  = Qt5Test2
  CONFIG += console
  CONFIG -= app_bundle
  TEMPLATE = app
  SOURCES += main.cpp
  </code></pre>
  
  <p>main.cpp file:</p>
  
  <pre><code>#include &lt;QCoreApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QCoreApplication a(argc, argv);
  
      return a.exec();
  }
  </code></pre>