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. Some characters are disappear in Qlabel

Some characters are disappear in Qlabel

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k Views 2 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.
  • A Offline
    A Offline
    artrace
    wrote on last edited by artrace
    #1

    In my qt window application, some characters are disappear in Qlabel.
    If I setText ("abcdefgh") QLable is displayed as "a cd g ".
    0_1511351153435_question.PNG

    QLabel label;
    QString css_text = "QLabel{font-size:14px; background-color: rgba(64, 64, 64, 20%); font-family:Malgun Gothic; color:white;}";
    label.setStyleSheet(css_text);
    label.setText("abcdefgh");
    

    Also,

    • Changing the font from "Malgun Gothic" to "Malgun Gothic Semilight", problems not happened.
    • Changing the font-size from "14px" to "13px", problems not happened.
    • This problem only occurs on machines using nvidia vga.

    What could be the problem and what's the solution ?

    {Qt 5.7.0, Win10}

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

      Hi
      It could be a font issue.
      Can an other application use that font and same text with no issue?

      A 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        It could be a font issue.
        Can an other application use that font and same text with no issue?

        A Offline
        A Offline
        artrace
        wrote on last edited by
        #3

        @mrjj
        Hi,
        This problem only occurs with widgets registered as QGraphicsProxyWidget item of QGraphicsScene.
        Also, changing the font-size from "14px" to "13px", problems disappeared.
        Thank you.

        1 Reply Last reply
        0
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @artrace it looks like your problem is solved, isn't it? If so please don't forget to mark your post as such. Thanks.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          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