Downloads of v 5.15.2:


Last Update:

04 May 2021

Package Maintainer(s):

Software Author(s):

  • Qt Project



Qt 5 SDK

  • 1
  • 2
  • 3

5.15.2 | Updated: 04 May 2021



Downloads of v 5.15.2:



Software Author(s):

  • Qt Project



  • 1
  • 2
  • 3
Qt 5 SDK 5.15.2

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests

Validation Testing Passed

Verification Testing Passed


Scan Testing Successful:

No detections found in any package files


To install Qt 5 SDK, run the following command from the command line or from PowerShell:


To upgrade Qt 5 SDK, run the following command from the command line or from PowerShell:


To uninstall Qt 5 SDK, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade qt5-default -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade qt5-default -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure qt5-default installed
    name: qt5-default
    state: present
    version: 5.15.2
    source: STEP 3 URL

See docs at

chocolatey_package 'qt5-default' do
  action    :install
  version  '5.15.2'
  source   'STEP 3 URL'

See docs at

    Name: qt5-default,
    Version: 5.15.2,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller qt5-default
   Name     = 'qt5-default'
   Ensure   = 'Present'
   Version  = '5.15.2'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'qt5-default':
  provider => 'chocolatey',
  ensure   => '5.15.2',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install qt5-default version="5.15.2" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator TheCakeIsNaOH on 10 May 2021.


Qt 5 development defaults package.

Quick start

  • After installing Chocolatey, run choco install -y qt5-default qtcreator in PowerShell and then launch Qt Creator to try to create a new Qt Widgets Application.


  • Check that all packages and their dependencies were installed, if one failed (e.g. due to network-related errors) try to reinstall it using --force or try a previous version...
  • If multiple versions of the Qt SDK are already installed, Qt Creator might need to be reconfigured to list them. Please backup %APPDATA%\QtProject\qtcreator\qtversion.xml before installation and check it after or update Tools\Options\Kits in Qt Creator if needed.

# Source variables which are shared between install and uninstall.
. $PSScriptRoot\sharedVars.ps1

# Ideally...
#cmd /c "refreshenv & pip install --only-binary :all: aqtinstall==$aqtVer & aqt install --outputdir $QtSDKRoot $QtSDKVer windows desktop win$MinGWArch`_mingw$MinGWMMVer -m qtcharts qtscript"

# If some py7zr pip dependencies fail...
# Would need also 7zip...
cmd /c "refreshenv & pip install --only-binary :all: requests==$requestsVer packaging texttable & pip install --only-binary :all: --no-deps aqtinstall==$aqtVer & aqt install -E 7z --outputdir $QtSDKRoot $QtSDKVer windows desktop win$MinGWArch`_mingw$MinGWMMVer -m qtcharts qtscript"

$QtVersionFileContent = @" 
  <valuemap type="QVariantMap">
   <value type="QString" key="QMakePath">$QtSDKMinGWPath\bin\qmake.exe</value>
   <value type="QString" key="QtVersion.Type">Qt4ProjectManager.QtVersion.Desktop</value>
  <value type="int">1</value>
New-Item -ItemType Directory -Force -Path "$env:APPDATA\QtProject\qtcreator"
Set-Content -Path "$env:APPDATA\QtProject\qtcreator\qtversion.xml" -Encoding ASCII -Value "$QtVersionFileContent"
$ErrorActionPreference = 'Stop'; # Stop on all errors.

# Source variables which are shared between install and uninstall.
. $PSScriptRoot\sharedVars.ps1

if (Test-Path $QtSDKMinGWPath) {
    Remove-Item -Recurse -Force $QtSDKMinGWPath
$requestsVer = "2.25.1"
$aqtVer = "1.1.6"
if ((Get-ProcessorBits 32) -or $env:ChocolateyForceX86 -eq $true) { $MinGWArch = "32" } else { $MinGWArch = "64" }
$MinGWMMVer = "81"
$QtSDKVer = "5.15.2"
$QtSDKRoot = "C:\Qt"
$QtSDKPath = "$QtSDKRoot\$QtSDKVer"
$QtSDKMinGWPath = "$QtSDKRoot\$QtSDKVer\mingw$MinGWMMVer`_$MinGWArch"

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status

Discussion for the Qt 5 SDK Package

Ground Rules:

  • This discussion is only about Qt 5 SDK and the Qt 5 SDK package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Qt 5 SDK, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus