Как установить qt offline
Перейти к содержимому

Как установить qt offline

  • автор:

How to install Qt5.12.11 without an account?

I downloaded the .exe installer from download.qt.io but it asks me to login to continue to install. I recall there is a skip button on the installation window to bypass the login in the past Qt releases. Does not Qt 5.12.11 allow to install without an account? I disconnect the network connection but the skip button never appears. B.T.W, more and more software/website require you to register to use their service. Is there some philosophy behind this trend? At the first glance, this policy creates inconvenience thus reduces potential users.

asked Jun 10, 2021 at 4:17
781 2 2 gold badges 10 10 silver badges 27 27 bronze badges

The «Skip» button existed until February 2020, when logging in was required again (qt.io/blog/qt-offering-changes-2020). As of today, there is no way to download pre-built binaries from the official installer without logging in. You can, however, build Qt from source code (wiki.qt.io/Building_Qt_5_from_Git) or use an unofficial installer (github.com/miurahr/aqtinstall), both without logging in.

Jun 10, 2021 at 4:37

Thank you for the information. It is a pity that the skip button is retired. I think many people will have to build qt themselves.

Jun 10, 2021 at 15:11

I noticed on qt.io/offline-installers there is only an offline installer for Qt 5 but not Qt 6 (which was released 1 year ago today). Related: superuser.com/questions/1140788/qt-install-offline

Dec 8, 2021 at 16:23

I have also downloaded official 5.12 offline installer and it asked me to login. I turned my airplane mode on and closed the qt installer window. Then reopen the window, a message poped up, that network configuration is missing or something. However next button was available which allowed me to install without internet connectivity.

Feb 5, 2022 at 9:36

3 Answers 3

In case of an offline installer, you can just change the system time year to 2019, run the installer, press the button and roll the system time back.

answered Jul 28, 2022 at 14:08
2,292 29 29 silver badges 28 28 bronze badges

You could dowload the offline installer, the online installer require a qt account. Offline installer link.

First you should download and install the qt creator and then download and install the qt source package, if you do not want to use the qt-creator then you do not have to dowload that.

answered Jul 31, 2021 at 15:57
user13088490 user13088490

I downloaded the offline installer «Qt 5.12.11 for Linux 64-bit (1.3 GB)» and like someone said in comments, logging in is required. Even for the offline installer unfortunately but maybe there is a way to bypass the login form since the data is already downloaded for the «offline installer». If I disable my Internet connection and start the installer, it says «Network connection not found. If you are using proxy, please modify proxy settings from ‘Settings’ or continue without internet connection.» but we cannot continue. Even the FAQ is not up-to-date: wiki.qt.io/Ifw_FAQ

Nov 10, 2021 at 16:07

@baptx Just change the system time year to 2019, run the installer, press the button and roll the system time back.

Feb 23, 2022 at 2:23

@Andry you should create an answer with this comment as this is the only way to actually install without a user.

Jul 28, 2022 at 7:57

You could use the old «qt-unified-online-installer», where you still could skip the login, to install a newer Qt version! The latest installer version, where this is possible (as far as I know) is the version 2.0.5-2.

The old installer for Linux can still be downloaded from here:

Unfortunately, Qt.io, in their wisdom, decided to remove the Windows and MacOS online installers from their download mirrors, but at least a slightly older version for Windows can still be found via Google, search for «qt-unified-windows-x86-2.0.2-online.exe». Here’s a link for direct download that I’ve found (06/2023), but I didn’t test it on Windows!

If anybody knows where to get the old 2.0 MacOS online installer, please let me know.

Example for Linux:

Now run the installer, skip the login, and when you are on the «Welcome» page, press «Settings» and go to the «Repositories» tab. Disable all «Default repositories» and select «User defined repositories» (must be selected!!). Then press the «Add» button to add your own Qt repositories, depending on what version you want to install, e.g. for Qt 5.15.2 on Linux, add these five Linux repositories:

https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5152 https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5152_src_doc_examples https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/tools_generic https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/tools_qtcreator https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/licenses 

Then press «OK», repeat skipping the login page and press «Next», now the installer should load all data needed to install the newer Qt version, and you are able to select what package you want to install. 🙂

Other versions and systems:

(or: how to get those repositories URLs)

If you want to install another Qt version, and/or a version for your OS, just look up here:

. select the folder with your OS, and go into the «desktop» subfolder!

In here, search for the folder pair that has your wanted version (e.g. Qt 5.12.11 = «qt5_51211» and «qt5_51211_src_doc_examples»), and replace the first two repository URLs from the example above with those two (right click > copy link). Then search for the corresponding folders/links of the other three needed repositories of your OS («tools_generic», «tools_qtcreator» and «licenses»).

Tested this on Debian Linux 12 x64, with latest Qt5 and Qt6 repositories.

Где теперь взять offline установщик Qt5 под Linux?

Друзья, вопрос актуальный, начиная с февраля-марта этого года: где теперь взять offline установщик Qt5.15+ (ну или Qt6, чего уж там) под Linux (Debian, Ubuntu, Mint)?

Вариант со сборкой из исходников оказался для меня пока что неподъемным: где-то допускаю ошибку и в итоге классы в проекте обозначаются как неизвестные, а WebEngine вообще не собрался, ругнувшись: could not find all necessary libraries for qpa-xcb support in qtwebengine , кроме того ругался после make install еще чем-то «не могу создать каталог такой-то: отказано в доступе» и т.п. . (собирать из исходников пытался под свежей Mint, клонируя из репозитория по инструкции Building_Qt_5_from_Git).

Вариант установить через snapd подкупал своей простотой (казалось бы, всего-то нужно: включить поддержку snaps, переместив файлик nosnap.pref куда-нибудь в HOME), однако после установки snapd и запуска соответствующей команды на установку снапа qt515-core20, он вроде установился, но куда — обнаружить не удалось, даже через Qt Creator. Видимо, снова не тот путь.

Собственно, вопрос актуальный в нашей стране со времен Чернышевского, а может и до него: что делать? Если есть проверенные идеи и пошаговые инструкции по поиску/установке Qt5.15+ (ну или Qt6, чего уж там) — you are welcome!

  • Вопрос задан более года назад
  • 2993 просмотра

2 комментария

Средний 2 комментария

Настраиваем окружение Qt6+QtC без VPN

Как известно, с недавних пор сервера qt.io запрещают загрузку любых архивов с российских IP. Если первое время проверка шла только на получение метаинформации, теперь любая загрузка файла обрывается сервером.

Обычные советы, как это обойти, включают:

  • Используй платный безлимитный VPN;
  • Используй дистрибутив Linux и его бинарные сборки;
  • Собирай сам из исходинков.

Все это рабочие советы, но не очень дружелюбны к начинающим разработчикам, которые только hello world начинают собирать. Я расскажу, как можно быстро настроить окружение используя зеркала Yandex и github.

Часть 1, установка Qt библиотек

Для начала определимся с желаемой версией установки (пусть будет Qt 6.4.1) и целевой директорией (пусть будет D:/Qt — если память не изменяет, с юникодными символами в директории могут быть проблемы).

qt.qt6.641.win64_msvc2019_64/6.4.1-0-202211101254qtbase-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z qt.qt6.641.win64_msvc2019_64/6.4.1-0-202211101254qtdeclarative-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z qt.qt6.641.win64_msvc2019_64/6.4.1-0-202211101254qttools-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z qt.qt6.641.win64_msvc2019_64/6.4.1-0-202211101254qttranslations-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z

Помещаем их в директорию D:/Qt , и распаковывем 7-zip в тещую директорию (т.о все они распакаются в одно место — 6.4.1 и содержимое объединится).

Можно также порыскать по соседним директориям, если вам нужны какие-то модули не из стандартной поставки, например:

дебажные символы для qtbase: qt.qt6.641.debug_info.win64_msvc2019_64/6.4.1-0-202211101254qtbase-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64-debug-symbols.7z Qt multimedia: qt.qt6.641.addons.qtmultimedia.win64_msvc2019_64/6.4.1-0-202211101254qtmultimedia-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z Qt5 compat модуль: qt.qt6.641.qt5compat.win64_msvc2019_64/6.4.1-0-202211101254qt5compat-Windows-Windows_10_21H2-MSVC2019-Windows-Windows_10_21H2-X86_64.7z

В общем-то, на этом установка самого фреймворка завершена, если у вас уже стоит Qt Creator, просто укажите путь к qmake6.exe для добавления версии Qt.
(D:\Qt\6.4.1\msvc2019_64\bin\qmake6.exe)

Часть 2, установка Qt Creator

Можно также найти QtC на зеркале Yandex, но я предпочитаю релизы с Github.

Скачиваем архивы qtcreator-Windows-MSVC-3703462836.7z и qtcreatorcdbext-Windows-MSVC-3703462836.7z ( в зависимости от версии, набор цифр будет отличаться)
Распаковываем первый в любой удобный вам путь, например, D:/Qt/qt-creator-9.0.0
Распаковываем второй таким образом, чтобы его содержимое (dll) оказалось в D:/Qt/qtcreator-9.0.0/lib/qtcreatorcdbext64

Про настройку CDB отладчика, Kit-ов и прочего писать уже не буду, инструкций по настройке IDE и так предостаточно.

Getting Started with Qt

You can install the Qt Framework and tools by using an online or offline installer, or by building the source packages yourself.

The installers allow you to download and install the following components:

  • Qt libraries, prebuilt for a particular development platform (operating system and compiler)
  • Qt Creator integrated development environment (IDE)
  • Reference Documentation and examples
  • Qt in source code form (needed only if you want to build the framework and tools yourself)
  • Add-On components that are relevant for different platforms

Online Installation

In the online installer, you can select commercial or open source versions of Qt, tools, and Add-On components to install. Using the online installer requires signing in to your Qt Account. The installer retrieves the license attached to the account from a server and provides a list of available components corresponding to the license.

The online installer is available from the Qt Downloads page.

Offline Installation

An offline installer is a single package that contains all of Qt and Add-Ons relevant for a target platform. Users with a commercial license can either sign in with their Qt account or with their Qt license key during the installation process. The license key is available in the Qt Account Web portal.

The offline installer is available here.

Installation Process

To run the installer, you need a Qt Account. You can use your Qt Account credentials to sign-in to all Qt services, including the forums and wiki. If you do not already have a Qt Account, you can create one during the installation process.

To complete the installation, select the components that you want to install and follow the instructions of the installation program.

The following YouTube video gives a complete walk-through of the installation process:

Updating or Removing Qt

Once Qt is installed, you can use the Maintenance Tool under to add components and to update or remove installed components.

Platform Requirements

Specific requirements and instructions for developing applications on different platforms are covered in the platform pages.

For more information, visit the supported platforms page.

Create Your First Applications

Learn the basics of Qt and Qt Quick development by following the two tutorials below that illustrate how to create simple applications and build and run them on target platforms:

  • Getting Started Programming with Qt Widgets
  • Getting Started Programming with Qt Quick

Qt Widgets provides a library of UI elements which allow you to create classic desktop-style user interfaces. Qt Quick is a library providing types and functionalities for building modern, fluid, animated UIs.

For a more thorough walkthrough of the different aspects of developing applications with Qt 5, see the QML Book. It focuses on Qt Quick, but also provides the information needed to use QML together with C++.

Explore Qt

We invite you to explore the rest of Qt. We prepared overviews which help you decide which APIs to use and our examples demonstrate how to use them.

To view a list of all Qt examples, visit the List of Qt Examples page.

Setting Up Projects

  • Qt Quick Projects
  • Qt Widget Projects
  • Configuring Projects

Developing with Qt Creator

  • Building for Multiple Platforms
  • Running on Multiple Platforms
  • Deploying to Devices
  • Connecting Devices
  • See more

Reference Documentation

  • Qt Overviews — list of topics about application development
  • Examples and Tutorials — code samples and tutorials
  • Qt Reference Pages — a listing of C++ and QML APIs

Qt Project Community

Qt’s vibrant and active community site, http://qt.io houses a wiki, a forum, and additional learning guides and presentations.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *