QT_NO_UTF8_SOURCE
Evita que se obligue a tratar los archivos fuente como UTF-8 en Windows.
Esta propiedad se introdujo en Qt 6.0.
Al compilar con algunos compiladores para Windows, los objetivos que se vinculan a una biblioteca de Qt utilizan opciones que obligan al compilador a tratar sus archivos fuente como UTF-8. Actualmente, esto está implementado para los compiladores de Visual Studio e Intel. Puedes desactivar este comportamiento para cada objetivo individual estableciendo la propiedad en TRUE:
set_property(TARGET target_name PROPERTY QT_NO_UTF8_SOURCE TRUE)Nota: Esto no modifica el comportamiento en tiempo de ejecución de clases como ` QString ` (su constructor, definido en ` const char * `, requiere una entrada codificada correctamente en UTF-8). Utiliza las macros ` QT_NO_CAST_FROM_ASCII ` y ` QT_RESTRICTED_CAST_FROM_ASCII ` para identificar dicho código.
Véase también qt_disable_unicode_defines() y qt_allow_non_utf8_sources().
© 2026 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.