You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the downloaded files and get these individual components
compilers, build tools and runtimes
MSVC v142 - VS 2019 C++ x64/84 Built Tools(latest visual c++ v142)
SDKs, Libraries and frameworks
windows 10 sdk 10.0.19041.0
windows 10 sdk 10.0.18362.0 [optional]
C++ ATL for latest v142 build tools(x86 & x64)
C ++ ATL for latest v142 built tools with spectre mitigations (x86 & x64)
C++ MFC for latest v142 build tools(x86 & x64)
C ++ MFC for latest v142 built tools with spectre mitigations (x86 & x64)
Python 2.7 or later
Ninja : https://github.com/ninja-build/ninja/releases
Environment variables
|| Add these to system variables Path (Depends on your locations) ||
C:\Qt\5.15.2\msvc2019_64\bin
C:\Program Files(x86)\Microsot Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64
C:\\Python27\
C:\ninja
Building QT PDF
Search on windows search bar for"Qt 5.15.2 (MSVC 2019 64-bit)"& open
on that terminal
# change current directorycd C:\Program Files(x86)\Microsot Visual Studio\2019\BuildTools\VC\Auxiliary\Build
# Setup Environment
(compiler) (architecture) (Windows SDK Version)
vcvarsall.bat amd64 10.0.19041.0
# Change current working dircd C:\Qt\5.15.2\Src\QTWebEngine
# create build dir
mkdir build
# change working dir to buildcd build
# building
qmake ../../qtwebengine -- -no-build-qtwebengine-core
# making(this will take care of ninja and gn builds)
nmake
# installing the make
nmake install
running a project
linking the pdf module
# open .pro file & add the module
QT += core gui pdf
Project Settings
qt creator -> tools-> options-> kits
.. and selectDesktop Qt 5.15.2 MSVC2019-64bit
#compilers selections
c: Microsot Visual C++ Compiler 16.11.31911.196(amd64)
c++ : Microsot Visual C++ Compiler 16.11.31911.196(amd64)
Cmake tools : CMake 3.21.1(Qt)
# Profile selections
on the left side qt creator panel, (spanner icon)
selectproject-> and selectthe Desktop Qt 5.15.2 MSVC2019 64bit kit
disable other kits
# Then Run qmake and test the project