Results 1 to 12 of 12

Thread: Problem when creating first example using VS 2012 qt add-in

  1. #1
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Problem when creating first example using VS 2012 qt add-in

    I installed qt-opensource-windows-x86-msvc2012_opengl-5.3.0 then installed qt-vs-addin-1.2.3-opensource. I had VS 2012 installed on my Windows 7 machine.
    So, for making first example I tried to create a new project on the VS 2012 IDE as follows:

    New Project -> Qt Application -> named Qtest as of name for project -> OK -> On the overview tab clicked next. then I got below message:

    1.jpg

    I clicked Yes then Next and then Finish. this time I got this message:

    2.jpg

    When I clicked OK, it returned me to first previous window of naming the new project.

    How to solve this problem and how to use VS 2012 for Qt please?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    Put in enviroment variable PATH Qt bin directory. In example if You have Qt installed in D:\QtDir in PATH put D:\QtDir\bin

  3. #3
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    I should put that path to where?
    I installed Qt in D:\ drive. So in the New Project window and in the location I put D:\Qt\Qt5.3.0\Tools\QtCreator\bin and then OK. But same result!
    Last edited by abbasi; 11th June 2014 at 16:18.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    Dear buddy. You should know the basics of how the tool works. Read this article.

  5. #5
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    Doesn't this affect other programs including VS for C++ programming?

  6. #6
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    Do you know what is the job of the PATH variable ?

  7. #7
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    NO. I haven't been familiar with it.

  8. #8
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    So you need to. How you want to create software for the platform (Windows) on which you know nothing? PATH contains all the directories in which the system (Windows) is looking for programs (EXE files) and DLLs.

  9. #9
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    The PATH contains this:

    C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%Sy stemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\ System32\WindowsPowerShell\v1.0\;C:\Program Files\Toshiba\Bluetooth Toshiba Stack\sys\;%systemroot%\System32\WindowsPowerShell \v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
    Should I edit it or remove these and then paste the D:\ bin directory.
    Please give an obvious way.

  10. #10
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    You should add Qt bin directory to the PATH. In Qt Group in Start Menu you have a link to "Qt command prompt". It uses QT_DIR\bin\qtvars.bat Look in this bat file how to set (what to add) PATH variable.

  11. #11
    Join Date
    Jun 2014
    Posts
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    In start menu, there is a folder named QT 5.3.0 that when I open/extend it there isn't any link to Qt command prompt!

  12. #12
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem when creating first example using VS 2012 qt add-in

    I'm working with Qt 4 series. Maybe in Qt 5 is different.
    Uncle Google is great : read this topic

Similar Threads

  1. Problem running Qt Asisstant (Qt 4.8.5,VS 2012, Win7 x32)
    By ObiWanKenobe in forum Installation and Deployment
    Replies: 0
    Last Post: 14th August 2013, 10:20
  2. Qt and VS 2012
    By ToddAtWSU in forum Qt Tools
    Replies: 0
    Last Post: 20th October 2012, 01:31
  3. Problem When Creating my own Slot
    By Fatla in forum Qt Programming
    Replies: 12
    Last Post: 6th June 2008, 14:44
  4. problem creating dom tree
    By dreamer in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2008, 08:12

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
  •  
Qt is a trademark of The Qt Company.