OS X 10.9, "QtWidgets" not found



  • I have added "QT += widgets" to the .pro file
    In Qt Creator, it's able to find this file sits at,
    "%SomePath%/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Headers/QtWidgets"
    But when compiling, the error generated,
    fatal error: 'QtWidgets' file not found
    #include <QtWidgets>

    Has anyone met same problem?
    What should I do with it?
    Any idea would be appreciated!!!


  • Moderators

    Hi, and welcome to the Qt Dev Net!

    Did you run qmake after you modified your .pro file?



  • [quote author="JKSH" date="1393911252"]Hi, and welcome to the Qt Dev Net!

    Did you run qmake after you modified your .pro file?[/quote]

    Thank you for reply!
    It is an old project which I am moving from Qt4 to Qt5.
    I removed the #include <QtGui> before the <QtWidgets> and do qmake as you suggested, it works~~
    Thanks~


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.