Код: Выделить всё
target_compile_definitions(${PROJECT_NAME} PUBLIC
QT_DEBUG_NO_OUTPUT
QT_NO_INFO_OUTPUT
QT_NO_WARNING_OUTPUT
)
Код: Выделить всё
#ifndef NDEBUG
qDebug()
Подробнее здесь: [url]https://stackoverflow.com/questions/71618469/cannot-surpress-qdebug-output-in-relesae-build[/url]
Мобильная версия