【问题标题】:ADD QT Versions after installation安装后添加 QT 版本
【发布时间】:2018-10-30 00:16:14
【问题描述】:

我已经安装了具有以下设置的开源 QT 5.5.0:

套件:

Desktop Qt 5.4.2 MSVC2013 64bit2
Desktop Qt 5.5.0 MSVC2013 64bit

Qt 版本:

Qt 5.4.2 MSVC2013 64bit2 and some qmake.exe path
Qt 5.5.0 MSVC2013 64bit and some qmake.exe path

编译器:

Microsoft Visual C++ Compiler 12.0(x86)
Microsoft Visual C++ Compiler 12.0(amd64)
Microsoft Visual C++ Compiler 12.0(x86_amd64)
Microsoft Visual C++ Compiler 12.0(x86_arm)
Microsoft Visual C++ Compiler 12.0(amd64_arm)
Microsoft Visual C++ Compiler 9.0(x86)
Microsoft Visual C++ Compiler 9.0(x86_amd64)
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Windows Mobile 5.0 Smartphone SDK (ARMV4I)

但现在我想添加 32 位 QT 版本,以便能够将它们与 32 位套件中的 x86 编译器结合起来,例如 Lucacox 提到的here,而无需再次从设置中预安装 QT。我已经尝试过工具->构建和运行-> QT版本->添加但不知道.qmake是否足够以及在哪里可以找到它(基于上面Lucacox的回答,我认为不是-也许至少下载版本需要从某个地方)。有什么办法吗?

安装程序不允许在同一安装中添加 QT 版本:

【问题讨论】:

    标签: qt installation


    【解决方案1】:

    您可以使用 Qt 维护工具轻松完成添加特定标准 Qt 构建。只要您在 Windows 上,通过键入:“Windows+S Qt Maint...”或通过在“添加/删除程序”控制面板中找到 QT 并单击“更改”来找到一个。

    请注意,您可以将一个 Qt Creator 与不同的预构建目标 Qt 一起使用。我对 32 位和 64 位都这样做,而无需更换工具本身。这就是为您的项目目标选择正确的Compiler Kit 和选择/adding Qt

    【讨论】:

    • 维护工具位于“Qt_installation_dir/MaintenanceTool.exe”。第二种在windows中运行的方法是“控制面板->程序和功能->找到qt程序->右键->更改”。
    • 我想补充一点,有时维护工具中没有指向存储库的链接。如果是这样,您可以通过添加 url http://download.qt-project.org/ 或(http://download.qt.io/online/qt5/ 等)将它们添加到设置中。还应该提到,如果您只安装了一个特定的 qt 版本,这可能不起作用。我遇到了这个问题,只有一个 5.9 维护工具,我只能管理 Qt 5.9.2 版本。在这种情况下,我最终重新安装了 qt。
    • 有没有MAC版的维护工具?
    • @ChuckB Once Qt is installed, you can use the Maintenance Tool under <install_dir> to add components and to update or remove installed components.
    • (在 Windows 10 中,可以通过“开始”菜单中的“卸载 Qt”条目访问)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-10
    • 2022-10-15
    • 1970-01-01
    • 2020-05-17
    • 1970-01-01
    • 2017-07-08
    相关资源
    最近更新 更多