Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

2,371

Downloads of v 6.2.4.20240217:

698

Last Update:

17 Feb 2024

Package Maintainer(s):

Software Author(s):

  • Qt Project

Tags:

qt sdk programming library c++ cpp

Qt 6 SDK

This is not the latest version of Qt 6 SDK available.

  • 1
  • 2
  • 3

6.2.4.20240217 | Updated: 17 Feb 2024

Downloads:

2,371

Downloads of v 6.2.4.20240217:

698

Maintainer(s):

Software Author(s):

  • Qt Project

Qt 6 SDK 6.2.4.20240217

This is not the latest version of Qt 6 SDK available.

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Qt Project. The inclusion of Qt Project trademark(s), if any, upon this webpage is solely to identify Qt Project goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

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

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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 https://community.chocolatey.org/api/v2/. 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. Copy Your Script

choco upgrade qt6-base-dev -y --source="'INTERNAL REPO URL'" --version="'6.2.4.20240217'" [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 qt6-base-dev -y --source="'INTERNAL REPO URL'" --version="'6.2.4.20240217'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install qt6-base-dev
  win_chocolatey:
    name: qt6-base-dev
    version: '6.2.4.20240217'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'qt6-base-dev' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '6.2.4.20240217'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller qt6-base-dev
{
    Name     = "qt6-base-dev"
    Version  = "6.2.4.20240217"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'qt6-base-dev':
  ensure   => '6.2.4.20240217',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator mwallner on 05 Apr 2024.

Description

Qt 6 base development files.

Package info

Quick start

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

Troubleshooting

  • Check that all the 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...
  • False positives may occur with some antivirus software, see https://github.com/miurahr/aqtinstall/issues/423.
  • 32 bit versions of Qt Creator do not seem available anymore, see https://github.com/AdmiringWorm/chocolatey-packages/issues/362.
  • If multiple versions of the Qt SDK and/or C++ compilers are already installed, Qt Creator might need to be reconfigured to list them. Please backup %APPDATA%\QtProject\qtcreator\qtversion.xml and %APPDATA%\QtProject\qtcreator\toolchains.xml before installation and check it after or update Tools\Options\Kits in Qt Creator if needed.

Package parameters

The package uses aqt install-qt command, see https://github.com/miurahr/aqtinstall. The following package parameters can be set:

  • /base:URL - Will pass --base URL parameter to aqt install-qt command. Useful for offline installations, see https://github.com/miurahr/aqtinstall/issues/224.
  • /config:SETTINGSPATH - Will pass --config SETTINGSPATH parameter to aqt command. Useful in combination with /base parameter, where ignore_hash option might need to be set to True in settings.ini, see https://github.com/miurahr/aqtinstall/issues/521.
  • /modules:MODULE1 MODULE2... - Will pass --modules MODULE1 MODULE2... parameter to aqt install-qt command. By default, --modules qtcharts is passed.
  • /Path - Will try to update Windows PATH.
  • /NoRegistry - Will not try to update Windows registry.
  • /Noqtversionxml - Will not try to update %APPDATA%\QtProject\qtcreator\qtversion.xml.
  • /Notoolchainsxml - Will not try to update %APPDATA%\QtProject\qtcreator\toolchains.xml.
    To pass parameters, use --params "''" (e.g. choco install qt6-base-dev --params "'/base:http://127.0.0.1:8000/ /config:C:\Qt\settings.ini /modules:qtcharts qtscript'").

tools\chocolateybeforemodify.ps1
$ErrorActionPreference = 'Stop'; # Stop on all errors.

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

$newpath = [environment]::GetEnvironmentVariable("Path","Machine")
$newpath = ($newpath.Split(';') | Where-Object { $_ -ne "$QtSDKMinGWPath\bin" }) -join ';'
[environment]::SetEnvironmentVariable("Path",$newpath,"Machine")

try {
    Get-ItemProperty -Path "$CMakeSystemRepositoryPath\Qt" | Select-Object -ExpandProperty "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -ErrorAction Stop | Out-Null
    Remove-ItemProperty -Path "$CMakeSystemRepositoryPath\Qt" -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer"
}
catch {

}
try {
    Get-ItemProperty -Path $CMakeSystemRepositoryPath\$CMakePackageName | Select-Object -ExpandProperty "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -ErrorAction Stop | Out-Null
    Remove-ItemProperty -Path $CMakeSystemRepositoryPath\$CMakePackageName -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer"
}
catch {

}

if (Test-Path $QtSDKMinGWPath) {
    Remove-Item -Recurse -Force $QtSDKMinGWPath
}
tools\chocolateyinstall.ps1
# Source variables which are shared between install and uninstall.
. $PSScriptRoot\sharedVars.ps1

$pp = Get-PackageParameters

if (!$pp['modules']) { 
	# qtscript missing in the 6.2.4 binaries...?
	$Modules = 'qtcharts'
	#$Modules = 'qtcharts qtscript'
}
else {
	$Modules = $pp['modules']
}

if (!$pp['config']) { 
	$Config = ""
}
else {
	$settings_ini = $pp['config']
	$Config = "--config $settings_ini"
}

if (!$pp['base']) { 
	cmd /c "refreshenv & cd $env:TEMP & $env:ChocolateyInstall\bin\aqt.exe $Config install-qt --outputdir $QtSDKRoot windows desktop $QtSDKVer win$MinGWArch`_mingw -m $Modules" 
	#cmd /c "refreshenv & cd $env:TEMP & $env:ChocolateyInstall\bin\aqt.exe $Config install-qt --outputdir $QtSDKRoot windows desktop $QtSDKVer win$MinGWArch`_mingw$MinGWMMVer -m $Modules" 
}
else { 
	$Base = $pp['base']
	# For offline install...
	# Before, set up qt6-base-dev-6.2.4\online\qtsdkrepository\windows_x86\desktop\qt6_624 folder with data from e.g. ftp://mirrors.dotsrc.org/.mirrors/qtproject/online/qtsdkrepository/windows_x86/desktop/qt6_624 from a computer with the Internet.
	# On the computer to be installed and to be able to use the --base parameter of aqt install-qt, which does not seem to accept directly local folders (firewall might need to be configured to temporarily allow TCP port 8000, e.g. netsh advfirewall firewall add rule name="Open Port 8000 TCP" dir=in action=allow protocol=TCP localport=8000): start python -m http.server --directory qt6-base-dev-6.2.4
	# Also, ignore_hash option might need to be set to True in settings.ini, which should be passed using --config parameter of aqt.
	# Unknown MinGW version for the 6.2.4 binaries...?
	cmd /c "refreshenv & cd $env:TEMP & $env:ChocolateyInstall\bin\aqt.exe $Config install-qt --base $Base --outputdir $QtSDKRoot windows desktop $QtSDKVer win$MinGWArch`_mingw -m $Modules"
	#cmd /c "refreshenv & cd $env:TEMP & $env:ChocolateyInstall\bin\aqt.exe $Config install-qt --base $Base --outputdir $QtSDKRoot windows desktop $QtSDKVer win$MinGWArch`_mingw$MinGWMMVer -m $Modules"
}

$EscQtSDKMinGWPath = $QtSDKMinGWPath -replace "\\", "/"
$EscEnvChocolateyInstall = $env:ChocolateyInstall -replace "\\", "/"

if (!$pp['Noqtversionxml']) {
	if (Test-Path -Path "$env:APPDATA\QtProject\qtcreator\qtversion.xml") {
		Copy-Item -Path "$env:APPDATA\QtProject\qtcreator\qtversion.xml" -Destination "$env:APPDATA\QtProject\qtcreator\qtversion.xml.bak" -Force -Recurse
	}
$QtVersionFileContent = @" 
<qtcreator>
 <data>
  <variable>QtVersion.0</variable>
  <valuemap type="QVariantMap">
   <value type="QString" key="QMakePath">$EscQtSDKMinGWPath/bin/qmake.exe</value>
   <value type="QString" key="QtVersion.Type">Qt4ProjectManager.QtVersion.Desktop</value>
  </valuemap>
 </data>
 <data>
  <variable>Version</variable>
  <value type="int">1</value>
 </data>
</qtcreator>
"@
New-Item -ItemType Directory -Force -Path "$env:APPDATA\QtProject\qtcreator"
Set-Content -Path "$env:APPDATA\QtProject\qtcreator\qtversion.xml" -Encoding ASCII -Value "$QtVersionFileContent"
}

if (!$pp['Notoolchainsxml']) {
	if (Test-Path -Path "$env:APPDATA\QtProject\qtcreator\toolchains.xml") {
		Copy-Item -Path "$env:APPDATA\QtProject\qtcreator\toolchains.xml" -Destination "$env:APPDATA\QtProject\qtcreator\toolchains.xml.bak" -Force -Recurse
	}
$ToolchainsFileContent = @" 
<qtcreator>
 <data>
  <variable>ToolChain.0</variable>
  <valuemap type="QVariantMap">
   <value type="QString" key="ProjectExplorer.GccToolChain.OriginalTargetTriple">x86_64-w64-mingw32</value>
   <value type="QString" key="ProjectExplorer.GccToolChain.Path">$EscEnvChocolateyInstall/bin/g++.exe</value>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformCodeGenFlags"/>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformLinkerFlags"/>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.SupportedAbis">
    <value type="QString">x86-windows-msys-pe-64bit</value>
   </valuelist>
   <value type="QString" key="ProjectExplorer.GccToolChain.TargetAbi">x86-windows-msys-pe-64bit</value>
   <value type="bool" key="ProjectExplorer.ToolChain.Autodetect">false</value>
   <value type="QString" key="ProjectExplorer.ToolChain.DetectionSource"></value>
   <value type="QString" key="ProjectExplorer.ToolChain.DisplayName">MinGW (C++, x86 64bit in $env:ChocolateyInstall\bin)</value>
   <value type="QString" key="ProjectExplorer.ToolChain.Id">ProjectExplorer.ToolChain.Mingw:{7f425a76-bae0-4a73-8aa3-fc4bef1d217c}</value>
   <value type="int" key="ProjectExplorer.ToolChain.Language">2</value>
   <value type="QString" key="ProjectExplorer.ToolChain.LanguageV2">Cxx</value>
  </valuemap>
 </data>
 <data>
  <variable>ToolChain.1</variable>
  <valuemap type="QVariantMap">
   <value type="QString" key="ProjectExplorer.GccToolChain.OriginalTargetTriple">x86_64-w64-mingw32</value>
   <value type="QString" key="ProjectExplorer.GccToolChain.Path">$EscEnvChocolateyInstall/bin/gcc.exe</value>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformCodeGenFlags"/>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.PlatformLinkerFlags"/>
   <valuelist type="QVariantList" key="ProjectExplorer.GccToolChain.SupportedAbis">
    <value type="QString">x86-windows-msys-pe-64bit</value>
   </valuelist>
   <value type="QString" key="ProjectExplorer.GccToolChain.TargetAbi">x86-windows-msys-pe-64bit</value>
   <value type="bool" key="ProjectExplorer.ToolChain.Autodetect">false</value>
   <value type="QString" key="ProjectExplorer.ToolChain.DetectionSource"></value>
   <value type="QString" key="ProjectExplorer.ToolChain.DisplayName">MinGW (C, x86 64bit in $env:ChocolateyInstall\bin)</value>
   <value type="QString" key="ProjectExplorer.ToolChain.Id">ProjectExplorer.ToolChain.Mingw:{861bbca0-b1cf-4137-956e-58b51be68206}</value>
   <value type="int" key="ProjectExplorer.ToolChain.Language">1</value>
   <value type="QString" key="ProjectExplorer.ToolChain.LanguageV2">C</value>
  </valuemap>
 </data>
 <data>
  <variable>ToolChain.Count</variable>
  <value type="int">2</value>
 </data>
 <data>
  <variable>Version</variable>
  <value type="int">1</value>
 </data>
</qtcreator>
"@
New-Item -ItemType Directory -Force -Path "$env:APPDATA\QtProject\qtcreator"
Set-Content -Path "$env:APPDATA\QtProject\qtcreator\toolchains.xml" -Encoding ASCII -Value "$ToolchainsFileContent"
}

if (!$pp['NoRegistry']) {
	New-Item "$CMakeSystemRepositoryPath\Qt" -ItemType directory -Force
	New-ItemProperty -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -PropertyType String -Value "$QtSDKMinGWPath" -Path "$CMakeSystemRepositoryPath\Qt" -Force
	New-Item "$CMakeSystemRepositoryPath\$CMakePackageName" -ItemType directory -Force
	New-ItemProperty -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -PropertyType String -Value "$QtSDKMinGWPath" -Path "$CMakeSystemRepositoryPath\$CMakePackageName" -Force
}
$pathtoadd = "$QtSDKMinGWPath\bin"
if (($pp['Path']) -and !([environment]::GetEnvironmentVariable("Path","Machine") -match [regex]::escape($pathtoadd))) {
	$newpath = [environment]::GetEnvironmentVariable("Path","Machine") + ";$pathtoadd"
	[environment]::SetEnvironmentVariable("Path",$newpath,"Machine")
}
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'; # Stop on all errors.

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

$newpath = [environment]::GetEnvironmentVariable("Path","Machine")
$newpath = ($newpath.Split(';') | Where-Object { $_ -ne "$QtSDKMinGWPath\bin" }) -join ';'
[environment]::SetEnvironmentVariable("Path",$newpath,"Machine")

try {
    Get-ItemProperty -Path "$CMakeSystemRepositoryPath\Qt" | Select-Object -ExpandProperty "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -ErrorAction Stop | Out-Null
    Remove-ItemProperty -Path "$CMakeSystemRepositoryPath\Qt" -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer"
}
catch {

}
try {
    Get-ItemProperty -Path $CMakeSystemRepositoryPath\$CMakePackageName | Select-Object -ExpandProperty "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer" -ErrorAction Stop | Out-Null
    Remove-ItemProperty -Path $CMakeSystemRepositoryPath\$CMakePackageName -Name "qt$QtSDKMVer`_$QtSDKMMPVer`_win$MinGWArch`_mingw$MinGWMMVer"
}
catch {

}

if (Test-Path $QtSDKMinGWPath) {
    Remove-Item -Recurse -Force $QtSDKMinGWPath
}
tools\sharedVars.ps1
if ((Get-ProcessorBits 32) -or $env:ChocolateyForceX86 -eq $true) { $MinGWArch = "32" } else { $MinGWArch = "64" }
$MinGWMMVer = "112"
$QtSDKVer = "6.2.4"
$QtSDKMVer = "6"
$QtSDKMMPVer = "624"
$QtSDKRoot = "C:\Qt"
$QtSDKPath = "$QtSDKRoot\$QtSDKVer"
# Unknown MinGW version for the 6.2.4 binaries...?
$QtSDKMinGWPath = "$QtSDKRoot\$QtSDKVer\mingw_$MinGWArch"
#$QtSDKMinGWPath = "$QtSDKRoot\$QtSDKVer\mingw$MinGWMMVer`_$MinGWArch"
$CMakeRegistryPath = "HKCU:\SOFTWARE\Kitware\CMake"
$CMakeSystemRepositoryPath = "HKLM:\SOFTWARE\Kitware\CMake\Packages"
$CMakePackageName = "Qt$QtSDKMVer"

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.

Add to Builder Version Downloads Last Updated Status
Qt 6 SDK 6.4.2 26 Saturday, August 10, 2024 Approved
Qt 6 SDK 6.2.4.20240217 698 Saturday, February 17, 2024 Approved
Qt 6 SDK 6.2.4.20230529 944 Monday, May 29, 2023 Approved
Qt 6 SDK 6.2.4 127 Saturday, April 29, 2023 Approved

Discussion for the Qt 6 SDK Package

Ground Rules:

  • This discussion is only about Qt 6 SDK and the Qt 6 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 6 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