0
Follow
0
View

QT cannot find a valid Settings file

dailiben 注册会员
2023-02-27 13:24

The little girl referred to bing and GPT part of the content write :
QT version can not find a valid Settings file for a number of possible reasons, For example, the Settings file can be corrupted, accidentally deleted, or overwritten by other programs. It can also be caused by inconsistent environment variables between two computers, such as QT_QPA_PLATFORM_PLUGIN_PATH or QT_PLUGIN_PATH. In addition, it is possible that the Qt library or Qt plug-in is not configured properly during installation, causing Qt to not load properly.

Specifically, if the Qt library is not configured correctly, you need to configure it during installation by modifying the qmake.conf file, for example:

# qmake configuration for Qt 5.13.2 (MSVC 2017, 32 bit)
#
# Written by qmake configuration wizard (Qt 5.13.2), 2017
#
MAKEFILE_GENERATOR      = MSVC
CONFIG                 += ordered

QT_VERSION              = 513
QT_DIR                  = C:\Qt\5.13.2\msvc2017\32bit
# QT_DIR                  = C:\Qt\5.13.2\msvc2017\64bit

In addition, you need to configure the Qt plugin correctly during installation, for example, copying all files in the qtbase\plugins directory to the qtbase\bin directory after installation. You can also create a qt.conf file in the qtbase\bin directory and add the following contents:

[Paths] 
Plugins=../plugins 

This will allow Qt to load the plugin properly.
The answer is not easy, so take it.

About the Author

Question Info

Publish Time
2023-02-27 13:24
Update Time
2023-02-27 13:24

Related Question

Qt创建控件对象问题

ImportError: cannot import name 'ParamSpec' from 'typing_extensions'

sass报错:SassError: Invalid CSS after "$--colors: map": expected expression (e.g. 1px, bold)

如何用PyQt5在列(或行)之间画线?

Qt如何绘制文字轮廓

Spring Boot JPA - JPA Repository没有列出findByXXX列

Qt改变按钮背景色问题

api端为RedwoodJS中的多个字段validate唯一性

qtcreator字体

Python Pandas: "Series" objects are mutable, thus cannot be hashed when using .groupby