Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I have a problem text rendering with Qt 5.7(QML)
QtWS25 Last Chance

I have a problem text rendering with Qt 5.7(QML)

Scheduled Pinned Locked Moved Solved General and Desktop
qmltextqlabelqt 5.7
4 Posts 2 Posters 1.6k 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.
  • M Offline
    M Offline
    MintogoDeveloper
    wrote on last edited by MintogoDeveloper
    #1

    Platform : Windows 10 Pro
    Qt : Qt 5.7 msvc 2013 (x86)
    Text font : Noto sans CJK kr/jp/cn

    In QML, Text rendering result is a liitle blurry than Qt QLabel.

    and there is nothing I can do to resolve it anymore...

    Anybody have idea?

    Upper text of image is Text from Qt QLabel, below is Text from QML Text(Label).

    Here is image

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Just see do you see any warning of openGL functions at application window in QtCreator. If yes, please update your openGL library to the latest &greatest. That should solve your issue.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MintogoDeveloper
        wrote on last edited by
        #3

        Could you tell me about that a little more detail?
        There is no any warning messages on Qt creator.
        I use Qt 5.7 default, How can I update open gl of Qt 5.7 ? I use lasted graphic card driver already(NVIDIA).

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MintogoDeveloper
          wrote on last edited by
          #4

          I resolve it.

          I setted font of text as property of QML Text component.
          (Like font.family : parent.fontfamily)

          and on Qt 5.7's QML, there are no enough options to control font properties.

          so, I moved to C++ side and set a whole application font.

          QFont font = someClass.getLangFont();
          //set property of font instance here
          // such as hinting policy, style etc.
          QApplication::setFont(font);

          now it looks very cleary...

          thank you..

          1 Reply Last reply
          0

          • Login

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