Results 1 to 2 of 2

Thread: Configuring Visual Studio for QT/"Error: Cannot open source file QApplication"

  1. #1

    Default Configuring Visual Studio for QT/"Error: Cannot open source file QApplication"

    Hi, I am an entry level programmer. My first few programs are already complete, but I still have a lot to learn about tools and frameworks. Currently I am experimenting with QT, making a small application to assist in comparing the units in a game.

    So far I have been able to install the plugin and precompiled QT code for Visual studio, and both seems to have been installed correctly. At least QT has taken up it space in the VS menu line, and when I select QT | QT Options | QT Versions, version 4.7.2 shows up as it is presumed that it should.

    So far so good (I think). Still, when I load the files given to me by the original developer of the application, I get red lines under my "#include"s, and the error message says

    "Error: Cannot open source file QApplication" or more generally put:
    "Error: Cannot open source file XXX"

    so.. I guess my question is: What is my problem?

    Do I need to configure something in:
    Project properties (Project | Properties | CC++ Directories)
    Include Library, Reference, source or something like that?

    Please help the noobs become tomorrows experts

    Geir

    PS! If additonal info is needed, fire freely. I just couldnt think of anything relevant to add.

  2. #2
    Join Date
    Mar 2011
    Location
    Denmark
    Posts
    74
    Thanks
    7
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Configuring Visual Studio for QT/"Error: Cannot open source file QApplication"

    In the VS Qt Dropdown click "Qt Project Settings" and go to the QtModules tab, make sure all the modules you use in your project are checked off (you will atleast need "Core library" and "GUI library"

Similar Threads

  1. Replies: 9
    Last Post: 20th May 2010, 09:55
  2. Replies: 0
    Last Post: 4th November 2009, 10:21
  3. Qmake DLLDESTDIR, Visual Studio "clean solution"
    By SiLiZiUMM in forum Installation and Deployment
    Replies: 4
    Last Post: 18th March 2008, 12:14
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.