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. All includes of Qt widgets says file not found. I've edited pro file but no luck

All includes of Qt widgets says file not found. I've edited pro file but no luck

Scheduled Pinned Locked Moved General and Desktop
heliosfile not foundqt.confrundeploymentpro filewindowsqt5.5
4 Posts 2 Posters 5.4k Views
  • 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.
  • C Offline
    C Offline
    carlos91moreira
    wrote on 9 Sept 2015, 16:31 last edited by
    #1

    Hi all,
    This is my first experience with Qt and I'm a little bit lost at the moment. It's been now 2 days around this problem but I can't find a solution.

    I've an existing project that I need to compile in Windows.

    When I run my project several errors show up, but all of them related to the same thing: file not found

    The files that are getting an error are:

    • qt.h - this file I can't find it anywhere
    • qapplication.h
    • qbrush.h
      ...

    Examples:

    ..\matchflow\fedit_canvas.cpp:36:16: fatal error: qt.h: No such file or directory
    #include <qt.h>
    ^
    compilation terminated.

    I've tried to add them to the pro file but no luck so far. I've tried to add those particular files to the project folder but no luck either.

    Did anyone faced the same problem? Can anyone help me?
    Any question please ask.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Sept 2015, 19:26 last edited by
      #2

      Hi and welcome to devnet,

      You're missing QT += widgets in your pro file. Don't forget to run qmake before trying to build.

      On a side note, you should replace the q*.h include by their camel case equivalent e.g. #include <QApplication>

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 11 Sept 2015, 00:19
      0
      • S SGaist
        9 Sept 2015, 19:26

        Hi and welcome to devnet,

        You're missing QT += widgets in your pro file. Don't forget to run qmake before trying to build.

        On a side note, you should replace the q*.h include by their camel case equivalent e.g. #include <QApplication>

        C Offline
        C Offline
        carlos91moreira
        wrote on 11 Sept 2015, 00:19 last edited by
        #3

        @SGaist Hi and Thank you very much for your help.

        It helped a lot.

        I'm now facing other issue related to the pro file but this time is with the boost library. I can't include the boost library. I only need 3 files and all of them are in boost folder (.../boost_1_58_0/boost).

        But that is probably best to open another topic.

        Once again, thanks a lot, you saved me a lot of time :)

        C 1 Reply Last reply 11 Sept 2015, 00:28
        0
        • C carlos91moreira
          11 Sept 2015, 00:19

          @SGaist Hi and Thank you very much for your help.

          It helped a lot.

          I'm now facing other issue related to the pro file but this time is with the boost library. I can't include the boost library. I only need 3 files and all of them are in boost folder (.../boost_1_58_0/boost).

          But that is probably best to open another topic.

          Once again, thanks a lot, you saved me a lot of time :)

          C Offline
          C Offline
          carlos91moreira
          wrote on 11 Sept 2015, 00:28 last edited by
          #4

          After so many attempts without luck, the first attempt I try after writing this reply is a dfferent error :)

          So the boost is no longer my problem.

          For other people that my face the same problem as me, in the includepath just add: '$(BOOST_ROOT)'

          1 Reply Last reply
          0

          1/4

          9 Sept 2015, 16:31

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved