gpt4 book ai didi

windows - 如何调用QT_SCALE_FACTOR?

转载 作者:可可西里 更新时间:2023-11-01 09:44:28 25 4
gpt4 key购买 nike

我的电脑上安装了 Anaconda。但是,当我打开 Spyder 时,它看起来很糟糕,因为 DPI 很高。我被告知运行 QT_SCALE_FACTOR=2.5 spyder 来解决问题。但是,我返回 'QT_SCALE_FACTOR' 未被识别为内部或外部命令、可运行程序或批处理文件。 这令人沮丧,因为我通过 Anaconda 安装了 pyqt。它也是我路径的一部分 C:\...\Anaconda3\Lib\site-packages\PyQt5 如果我调用 qmake -query,我得到:

qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:C:/Users/.../Anaconda3/Library
QT_INSTALL_ARCHDATA:C:/Users/.../Anaconda3/Library
QT_INSTALL_DATA:C:/Users/.../Anaconda3/Library
QT_INSTALL_DOCS:C:/Users/.../Anaconda3/Library/doc
QT_INSTALL_HEADERS:C:/Users/.../Anaconda3/Library/include/qt
QT_INSTALL_LIBS:C:/Users/.../Anaconda3/Library/lib
QT_INSTALL_LIBEXECS:C:/Users/.../Anaconda3/Library/bin
QT_INSTALL_BINS:C:/Users/.../Anaconda3/Library/bin
QT_INSTALL_TESTS:C:/Users/.../Anaconda3/Library/tests
QT_INSTALL_PLUGINS:C:/Users/.../Anaconda3/Library/plugins
QT_INSTALL_IMPORTS:C:/Users/.../Anaconda3/Library/imports
QT_INSTALL_QML:C:/Users/.../Anaconda3/Library/qml
QT_INSTALL_TRANSLATIONS:C:/Users/.../Anaconda3/Library/translations
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:C:/Users/.../Anaconda3/Library/examples
QT_INSTALL_DEMOS:C:/Users/.../Anaconda3/Library/examples
QT_HOST_PREFIX:C:/Users/.../Anaconda3/Library
QT_HOST_DATA:C:/Users/.../Anaconda3/Library
QT_HOST_BINS:C:/Users/.../Anaconda3/Library/bin
QT_HOST_LIBS:C:/Users/.../Anaconda3/Library/lib
QMAKE_SPEC:win32-msvc2015
QMAKE_XSPEC:win32-msvc2015
QMAKE_VERSION:3.0
QT_VERSION:5.6.2

如您所见,看来我已经安装好了。为什么我不能调用 QT_SCALE_FACTOR?我怎样才能正确地做到这一点?谢谢! (顺便说一句,如果有帮助,我正在运行 Windows 10。)

最佳答案

在 Windows 控制台 (cmd.exe) 中运行下一个命令:

set QT_SCALE_FACTOR=2.5
spyder

关于windows - 如何调用QT_SCALE_FACTOR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44009692/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com