Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Text in labels is not rendered properly
QtWS25 Last Chance

Text in labels is not rendered properly

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 4 Posters 674 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jgsogo
    wrote on last edited by jgsogo
    #1

    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:

    200dc3d9-b70c-48f8-86dc-1653c4a5c03c-image.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you provide a minimal compilable example that shows this behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jgsogo
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Matte86
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • E Offline
              E Offline
              ericlemanissier
              wrote on last edited by
              #6

              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 option qt:with_harfbuzz=True

              1 Reply Last reply
              2

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved