Questions tagged [qt-vs-addin]

Qt VS Tools integrate the Qt development tools into Microsoft Visual Studio 2013, and later. This enables developers to use the standard Windows development environment without having to worry about Qt-related build steps or tools.

Qt VS Tools integrate the Qt development tools into Microsoft Visual Studio 2013, and later. This enables developers to use the standard Windows development environment without having to worry about Qt-related build steps or tools. An older version, called Qt Visual Studio Add-in, worked with Visual Studio 2008 upto Visual Studio 2013.

The main features of Qt VS Tools are:

  • Wizards for creating new Qt projects and classes.
  • Automated build setup for the Meta-Object Compiler (moc), User Interface Compiler (uic), and Resource Compiler (rcc).
  • Import and export of Qt project files (.pro) and project include files (.pri).
  • Automated conversion of a Qt VS Tools project to a qmake project, or the other way around.
  • Integrated Qt resource management.
  • Creating a Qt translation source (TS) file and starting Qt Linguist to translate the strings.
  • Integrated Qt documentation.
  • Debugging extensions for Qt data types.

A quick start guide can be found here.

38 questions
1
vote
1 answer

Using Qt tools extension with visual studio 2019 and I get so many errors

I downloaded Qt6.1.2, I installed the Qt tools extension in visual studio 2019 and I added the version its path. Whenever I start a new Qt widgets application project I get a lot of errors like this one: abc Error (active) E2783 expected a…
Khaled
  • 11
  • 3
1
vote
2 answers

Qt:Where to find the .pro file when developing with visual studio

I want to add sound to my program so I need to add header file “QSound”. To add the header file, I need to modify the .pro file. The problem is, I use visual studio to develop projects, so I can't find the .pro file. I am so confused. Thanks for…
liushi
  • 83
  • 7
1
vote
1 answer

How to solve the "no Qt platform plugin could be initialized" problem?

I'm trying to run a simple template in release mode on Visual Studio with the Qt extension. So far I've always been running projects in debug mode (never had trouble). Recently, I started with a browser application using webengine its widgets, but…
user12927872
1
vote
0 answers

Can't link Qt libraries in Visual Studio

I wanted to switch to VS but struggle to setup Qt. -I'm using VS Community 2019 16.6.0. -I installed the Qt plugin -I get no errors in my code (aka VS can include the libraries) My linker settings are as follows: -Ignore import library:…
infinitezero
  • 1,610
  • 3
  • 14
  • 29
1
vote
1 answer

Qtvsaddin clears the uninstalled Qt version

Before I uninstalled Qt, I forgot to delete the Qt version in qtvsaddin. As a result, there is an invalid Qt version in qtvsaddin. If I don't reinstall Qt, what should I do? Thanks.
郭苏莹
  • 15
  • 3
1
vote
1 answer

Is there any way to force QT_NO_FOREACH on all new Qt projects?

Since the inclusion of range-for in C++11 we've being migrating our Qt code so it no longer uses the Q_FOREACH/foreach macros. To force the migration, we are manually adding the QT_NO_FOREACH preprocessor define to every project we check. We use…
cbuchart
  • 10,847
  • 9
  • 53
  • 93
1
vote
0 answers

MS Visual Studio 2008 - Qt Addin - UI objects prompts do not appear

I create GUI application in QT. I am coding in Ms Visual Studio 2008 instead of Qt Creator, because I am using some external libraries (Xalan, Xerces)... The question is, how to customize Ms Visual that it shows functions/attributes of UI object…
Krzysiek
  • 11
  • 2
1
vote
1 answer

Syntax highlighter with selective attribute highlight - VS Addin

Is there any VS Adding for highlighting particular code block or attribute from whole code ? Thanks, Piyush
A Bright Worker
  • 1,298
  • 14
  • 21
1
vote
2 answers

How to add specific flags to moc in a vs2010 project?

I'm trying to resolve this bug and a workaround suggested was to pass -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED to moc.exe. This question is related to mine. The difference is I want to add a MOC flag in a VS2010 project (VS add-in). I've tried left…
andre
  • 7,018
  • 4
  • 43
  • 75
1
vote
1 answer

moc-ed files being excluded from build in Visual Studio 2010

I have a VS2010 solution with couple of Qt-based projects. Every time when i modify files from one certain project, generated files (moc_*.cpp ones) changes its properties to be excluded from build. Checked all the available properties but couldn't…
Sergei Ousynin
  • 170
  • 2
  • 13
1
vote
0 answers

2 VS2010 solutions, 2 similar .pro files. One solution is unable to access any of the headers in the INCLUDEPATH

I have two Qt .pro files which are being used to compile to visual studio 2010 solutions. One compiles to a qt library/dll, and the other is an application. The library .pro file: http://ideone.com/3gll0 The application .pro…
Emile Victor
  • 923
  • 1
  • 12
  • 22
0
votes
0 answers

How to embed Qt translation files in the executable when building from Visual Studio with the Qt VS tools extension?

When building a project in Qt Creator, these lines in the .pro file: CONFIG += lrelease CONFIG += embed_translations QM_FILES_RESOURCE_PREFIX=/lang will get the .qm translation files embedded in the built executable. The application can then load…
Gustavo Q
  • 61
  • 5
0
votes
0 answers

QT in Visual Studio using QML, console.log not showing logs when QML is dynamically loaded

on our VS (2017) environment that uses QT using QT tools for Visual Studio, console.log is not appearing on debug window when QML is dynamically loaded/added using the component.createObject() which is called from a QML itself in an MDI manner. How…
0
votes
0 answers

Debug QML in visual studio unable to connect to socket error

my environment, VS2017, QT 5.12.9 and QT VS Tool is 2.7.1 (rev20), I enabled the QML debugging options in QT Project Settings, rebuilt it and ran the project, however it is stucked in this error QML debugging is enabled. Only use this in a safe…
curiousJorgeXX
  • 363
  • 1
  • 10
0
votes
1 answer

Using non-qtcore libraries on Visual Studio using Qt VS Tools causes LNK2019

I am trying to use QSoundEffect from QtMultimedia. I have included the file like so: #include and used QSoundEffect in my project. When I try to compile my project after this, I get LNK2019 errors: 1>chatwindow.obj :…
emredesu
  • 179
  • 1
  • 5
  • 11