Text in labels is not rendered properly
-
I'm building a HelloWorld project using Qt6 (6.0.4, shared build, Macos with clang 12). It compiles, links and works, but my labels are not rendering properly. Not sure if it can be related to some local configuration or the symptom of any other issue or bug.
See the labels in the attached image:
-
Hi and welcome to devnet,
Can you provide a minimal compilable example that shows this behaviour ?
-
I think the issue is related to the Conan package. If I build the same project using the binaries provided by a Qt installation (and all CMake find-package from there), it works and renders perfectly.
I can upload some sources and instructions to reproduce the error (using Conan), but I'm not sure if this is the right place to ask for help with this issue. Probably it is not related to the binaries themselves, but some configuration, paths, plugins, frameworks,...
Indeed, if I build my executable using Conan provided package (it provides dylib), but after building I change Gui and Widgets using
install_name_tool
to use the Qt installation (it provides frameworks), it works. -
Interesting !
I think you should go to the bug report system and open a ticket there if nothing already exists with your project and findings.
-
I have the same issue, altough with a different configuration (Qt6 6.3.1, shared build, Macos Monterey with apple-clang 13.1) .
I managed to build the application properly by consuming the qt conan packages from the Qt Artifactory instead of using the qt recipe on Conan Center.
-
the solution to this problem is most probably to enable harfbuzz, cf https://stackoverflow.com/questions/73256254/static-qt-build-messes-up-text
When using conan recipe this is done by setting optionqt:with_harfbuzz=True