How to import qt projects in visual c++ 2010? - qt

I developed an application using qtCreator and I figured out that I need to import the project in visual studio. I tried to run the visual studio add-in (1.1.9) but it didn't work. Knowing that I have visual c++ express edition 2010
Are there any workarounds?

QMake can generate vcproj out of .pro files. Use those to import into VS.
The option you are looking for is qmake -tp vc.
See: http://doc.qt.nokia.com/4.7/qmake-platform-notes.html
For more info see here: How to generate .sln/.vcproj using qmake
Or: How to create a vcproj with qmake such that its filters reflect the directory structure?

I solved the problem using Qt Add-in a detailed solution can be found at
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

Related

Is it possible to debug qml in vscode?

I mean is it possible to debug in vscode? I only found the link https://forum.qt.io/topic/107303/debugging-in-vscode is related to the question. But the link hasn't clear answer, anyone could be help? very thx for you!
You can configure Visual Studio code for Qt development by adding extensions. Install the QML Syntax/Tools extension to get language support for QML and develop Qt Quick apps using QML Hot Reload: How to Use Visual Studio Code for Qt and QML Development

Not able to create Qt project with Visual Studio 2015 in Windows 10

I'm not able to create a Qt project with Visual Studio Community 2015 in Windows 10.
Steps I followed to setup QT with VS2015,
Installed visual studio community 10
Downloaded and installed QT for VS2015
Added QtPackage in VS2015 "Extensions and Updates", also added Qt version.
How I create new QT project
I select "QT application" under Visual C++ templates, which prompts couple of Qt project options to create application, but at the last before creating a project visual studio throws error
'C:\Users\users\AppData\Local\Temp\h451xhqd.vcproj' cannot be opened because its project type (.vcproj) is not supported by this version of the application.
However, I'm able to create a project with QT creator. Any help or pointer will be helpful.
PS: I'm new to VisualC++ :)
Below are the similar SO question that didn't helped
Question 1
Question 2
A video link from youtube
Finally, I was able to create a QT project.
Actually problem was with VC++ setup and template files. These two link was very helpful to me.
Running setup mentioned in section "Visual C++ : Project creation failure after Update"
Renaming ComponentModelCache

documentation of Qt 4.8.2 in VS2010

Highlights of Visual Studio Add-In 1.1.11 include:
Documentation support for Visual Studio 2010, and documentation updated
Fixed always moc’ing problem. (QTVSADDINBUG-92)
Fixed .pro file opening having include to “.” path. (QTVSADDINBUG-117)
how to use the integrated documentation?
The visual studio plugin does docs integration as well as everythign else needed to make Qt work perfectly with Qt

Qt/QuickFIX - doesn't find some header files

I am using both Qt Framework and QuickFIX engine to create a financial application with GUI.
My problem is that when I compile a program that implements QickFIX engine and Qt Framework, it gives me a compilation error: it doesn't find some header files in MinGW (socket.h, inet/in.h, etc)
I am on Windows 7 and I know that to use sockets you must use winsock.h and so on, but the problem is I have Visual C++ express edition and it's not supported by Qt, so I used Qt Creator and since I have an open source of Qt, QuickFIX engine uses the header files of Linux (socket.h, etc) rather than windows. So it gave me an error.
Please can you suggest me a solution?
I use Visual Studio Express 2010 with Qt. You will need to build Qt with it. When you configure make sure to specify Visual Studio 2010 as the make spec.Last time I built it got hung up on a couple of projects. To get around this you need to clear out some temporary files that Nokia packaged in the installer for some reason. Just google the error for details.
Once you have Qt built you ought to be able to qmake -tp vc your project and then load up the generated Visual Studio project file.

Automating MSI Build Process

Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant?
I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.
Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild.
The method the Visual Studio team uses to run their MSI builds is with Windows Installer XML. You can learn more about using WiX to deploy setup packages here.
Please note WiX doesn't support vdproj files so it means you'll be recreating your installer projects.
Edit: Looks like I was beat to the chase when grabbing my references :)
We use Wix to automate MSI builds for IronPython and IronRuby.
EDIT: to clarify, this probably means starting over from scratch when building your installer. While Wix has a mechanism to create a configuration directly from a preexisting MSI file, I've never gotten a satisfactory result from using this tool

Resources