QT_NO_UTF8_SOURCE
Evita que los archivos fuente sean tratados como UTF-8 para Windows.
Esta propiedad se introdujo en Qt 6.0.
Cuando se construye con algunos compiladores para Windows, los objetivos que enlazan con una librería Qt usarán banderas que fuerzan al compilador a tratar sus archivos fuente como UTF-8. Esto se aplica actualmente a los compiladores de Visual Studio e Intel. Puede desactivar este comportamiento para cada objetivo estableciendo la propiedad en TRUE:
set_property(TARGET target_name PROPERTY QT_NO_UTF8_SOURCE TRUE)
Nota: Esto no cambia el comportamiento en tiempo de ejecución de clases como QString (su constructor de const char * requiere una entrada UTF-8 codificada correctamente). Utilice las macros QT_NO_CAST_FROM_ASCII y QT_RESTRICTED_CAST_FROM_ASCII para identificar este tipo de código.
Ver también qt_disable_unicode_defines() y qt6_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.