Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OS X 10.9, "QtWidgets" not found
Forum Updated to NodeBB v4.3 + New Features

OS X 10.9, "QtWidgets" not found

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • L Offline
    L Offline
    lynn1653
    wrote on last edited by
    #1

    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!!!

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt Dev Net!

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

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lynn1653
        wrote on last edited by
        #3

        [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~

        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