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. Wrong text rendering
Forum Updated to NodeBB v4.3 + New Features

Wrong text rendering

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 327 Views 1 Watching
  • 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.
  • EngelardE Offline
    EngelardE Offline
    Engelard
    wrote on last edited by Engelard
    #1

    Hi everyone.
    I have a problem with text representation in my textBrowser, it looks different from what it looks like in any other app like Chrome or simple Notepad, etc:
    alt text
    That how many "█" characters looks like when typed continuously.
    But in my qt textBrowser it looks with some gaps in between:
    alt text
    What can i do to my textBrowser so it would represent characters right way?

    P.S. in actual IDE it looks the same:
    alt text

    jsulmJ 1 Reply Last reply
    0
    • EngelardE Engelard

      Hi everyone.
      I have a problem with text representation in my textBrowser, it looks different from what it looks like in any other app like Chrome or simple Notepad, etc:
      alt text
      That how many "█" characters looks like when typed continuously.
      But in my qt textBrowser it looks with some gaps in between:
      alt text
      What can i do to my textBrowser so it would represent characters right way?

      P.S. in actual IDE it looks the same:
      alt text

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Engelard What font do you use?
      Maybe you should play a bit with https://doc.qt.io/qt-5/qfont.html#setLetterSpacing ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      EngelardE 1 Reply Last reply
      3
      • jsulmJ jsulm

        @Engelard What font do you use?
        Maybe you should play a bit with https://doc.qt.io/qt-5/qfont.html#setLetterSpacing ?

        EngelardE Offline
        EngelardE Offline
        Engelard
        wrote on last edited by Engelard
        #3

        @jsulm said in Wrong text rendering:

        @Engelard What font do you use?

        Default? i suppose
        setLetterSpacing worked if you pass the '-1' value, tnx.

        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