Results 1 to 3 of 3

Thread: Cannot open include file: 'QString': No such file or directory

  1. #1
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Cannot open include file: 'QString': No such file or directory

    Hi guys,

    I've been messing around with QT using this book.

    When I run an example using QString, I encountered this error:
    Cannot open include file: 'QString': No such file or directory

    Is there any path that I haven't set into Windows Environment or what?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Cannot open include file: 'QString': No such file or directory

    The necessary Qt include directory paths are not in your compiler command.

    Are you running make on a Makefile generated by qmake from your PRO file, or doing something else?
    Last edited by ChrisW67; 21st March 2014 at 00:32.

  3. #3
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cannot open include file: 'QString': No such file or directory

    Finally i got it to run. Just right click on the project on the Qt Creator and select Run qmake. After that I can run the console application.

Similar Threads

  1. Replies: 3
    Last Post: 9th November 2013, 16:03
  2. Replies: 1
    Last Post: 23rd May 2011, 04:53
  3. Replies: 4
    Last Post: 9th May 2010, 16:18
  4. Replies: 2
    Last Post: 9th March 2010, 05:21
  5. Replies: 10
    Last Post: 15th June 2009, 19:44

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.