Results 1 to 2 of 2

Thread: use of QString in visual Studio Project

  1. #1
    Join Date
    Mar 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question use of QString in visual Studio Project

    Hi,

    I am having my DLL project in QT uses QString. i wants to develop application in VC++ (Visual studio2010) and use DLL from QT project have tried to keep Qt DLL as simple C++ code however i use QString which cannot be avoided.
    i do not want to make any changes to DLL if possible. and use same DLL in VC++. I have included header file as well as included folder for LIB. still i am getting following error :
    fatal error C1083: Cannot open include file: 'QString': No such file or directory.

    is there any work around or any plugins available. or anything i can do. i am stuck at this point.

    Thanks in advance,

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: use of QString in visual Studio Project

    you need to add qtdir and qtdir/core to your path or libary includes

    project -> c/c++ -> general -> additional include directories
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Visual Studio Project file
    By fruzzo in forum Newbie
    Replies: 0
    Last Post: 3rd November 2011, 14:11
  2. Replies: 1
    Last Post: 12th April 2011, 15:48
  3. QString and MS Visual Studio 2005
    By ToddAtWSU in forum Qt Programming
    Replies: 16
    Last Post: 19th June 2007, 17:28
  4. Replies: 3
    Last Post: 18th April 2007, 15:31
  5. Qt 4 and Visual Studio 2005 Add-in project
    By JSPoly in forum Qt Programming
    Replies: 10
    Last Post: 23rd January 2007, 22:33

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.