title: qt5 Homebrew mac - 'QtWidgets not found'
body: <p>I just did <code>brew install qt5</code></p>
  
  <p><code>qmake</code> works but the Makefile does not, giving me back a fatal error with "QtWidgets not found" which i copied and pasted from the tutorial. </p>
  
  <p>I understand this is a linking issue with the framework but what i've tried such as this did not work:</p>
  
  <pre><code>QMAKE_LFLAGS += -F/usr/local/Cellar/qt5/5.6.1-1/lib
  LIBS += -framework QtWidgets.framework
  </code></pre>
  
  <p>Any way to link this correctly? The code is:</p>
  
  <pre><code>#include &lt;QtWidgets&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
      QWidget window;
      window.resize(320, 240);
      window.show();
      window.setWindowTitle(
          QApplication::translate("toplevel", "Top-level widget"));
      return app.exec();
  }
  </code></pre>
  
  <p>The .pro file is:</p>
  
  <pre><code>SOURCES = main.cpp
  QMAKE_LFLAGS += -F/usr/local/Cellar/qt5/5.6.1-1/lib
  LIBS += -framework QtWidgets.framework
  
  
  # install
  target.path = $$[QT_INSTALL_EXAMPLES]/tutorials/widgets/toplevel
  sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS toplevel.pro
  sources.path = $$[QT_INSTALL_EXAMPLES]/tutorials/widgets/toplevel
  INSTALLS += target sources
  
  symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)
  maemo5: include($$QT_SOURCE_TREE/examples/maemo5pkgrules.pri)
  
  symbian: warning(This example might not fully work on Symbian platform)
  maemo5: warning(This example might not fully work on Maemo platform)
  simulator: warning(This example might not fully work on Simulator platform)
  </code></pre>
  
  <p>Both of which I retrieved from the official site.</p>