Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Text QML issue
Forum Updated to NodeBB v4.3 + New Features

Text QML issue

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 225 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.
  • V Offline
    V Offline
    Vinoth Rajendran4
    wrote on last edited by
    #1

    Hi All,

    We have implemented a dialog box with option button "CANCEL" and "DOWNLOAD". It's displaying as expected in most of the PC. But in one PC the text gets garbled. We could not find the cause of issue.

    In most PC its displayed as below, (as expected)
    expected.png

    But in one PC its is displayed as below,
    actual.png

    I will show the code snippet ,

    Text {
                    id: mCancelText
                    text: "CANCEL"
                    color: "white"
                    font.family: PR.const_FONT; renderType: Text.QtRendering;
                    font.pixelSize: dpY(12)
                    font.weight: Font.Normal
                    anchors.centerIn: parent
                }
    
    Text {
                    id: mDownloadText
                    text: "DOWNLOAD"
                    color: "white"
                    font.family: PR.const_FONT; renderType: Text.QtRendering;
                    font.pixelSize: dpY(12)
                    font.weight: Font.Normal
                    anchors.centerIn: parent
                }
    

    Can someone please provide suggestion for root cause ?

    Thanks in advance.

    J.HilkJ 1 Reply Last reply
    0
    • V Vinoth Rajendran4

      Hi All,

      We have implemented a dialog box with option button "CANCEL" and "DOWNLOAD". It's displaying as expected in most of the PC. But in one PC the text gets garbled. We could not find the cause of issue.

      In most PC its displayed as below, (as expected)
      expected.png

      But in one PC its is displayed as below,
      actual.png

      I will show the code snippet ,

      Text {
                      id: mCancelText
                      text: "CANCEL"
                      color: "white"
                      font.family: PR.const_FONT; renderType: Text.QtRendering;
                      font.pixelSize: dpY(12)
                      font.weight: Font.Normal
                      anchors.centerIn: parent
                  }
      
      Text {
                      id: mDownloadText
                      text: "DOWNLOAD"
                      color: "white"
                      font.family: PR.const_FONT; renderType: Text.QtRendering;
                      font.pixelSize: dpY(12)
                      font.weight: Font.Normal
                      anchors.centerIn: parent
                  }
      

      Can someone please provide suggestion for root cause ?

      Thanks in advance.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @Vinoth-Rajendran4
      seems like the font is not available on that one pc, or faulty, ore something  🤷‍♂️

      Have you also the problem, when you leave it as the default font?


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      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