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. QML randomly corrupt font / text / characters
Forum Updated to NodeBB v4.3 + New Features

QML randomly corrupt font / text / characters

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 3 Posters 795 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.
  • H Offline
    H Offline
    hobbe
    wrote on last edited by
    #1

    Qt 5.11.2
    0_1558922301555_20190527095744.png

    1 Reply Last reply
    0
    • Pradeep P NP Offline
      Pradeep P NP Offline
      Pradeep P N
      wrote on last edited by
      #2

      Hi @hobbe
      Can you please explain the problem ?

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      H 1 Reply Last reply
      1
      • Pradeep P NP Pradeep P N

        Hi @hobbe
        Can you please explain the problem ?

        H Offline
        H Offline
        hobbe
        wrote on last edited by
        #3

        @Pradeep-P-N qml render text (not all) corrupt randomly
        I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
        Then the text randomly crorrupt
        Platform is Windows 10
        On mac this never happened

        JKSHJ 1 Reply Last reply
        0
        • H hobbe

          @Pradeep-P-N qml render text (not all) corrupt randomly
          I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
          Then the text randomly crorrupt
          Platform is Windows 10
          On mac this never happened

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @hobbe said in QML randomly corrupt font / text / characters:

          I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
          Then the text randomly crorrupt
          Platform is Windows 10

          Please show the code for your updatePaintNode().

          How do you pass text into your program?

          What encoding are you using?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          H 1 Reply Last reply
          0
          • JKSHJ JKSH

            @hobbe said in QML randomly corrupt font / text / characters:

            I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
            Then the text randomly crorrupt
            Platform is Windows 10

            Please show the code for your updatePaintNode().

            How do you pass text into your program?

            What encoding are you using?

            H Offline
            H Offline
            hobbe
            wrote on last edited by
            #5

            @JKSH said in QML randomly corrupt font / text / characters:

            @hobbe said in QML randomly corrupt font / text / characters:

            I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
            Then the text randomly crorrupt
            Platform is Windows 10

            Please show the code for your updatePaintNode().

            How do you pass text into your program?

            What encoding are you using?

            QQuickTextNode *node = static_cast<QQuickTextNode *>(oldNode);
            node->addTextLayout(layout->position(),
                                        layout,
                                        d->m_color,
                                        QQuickText::Normal,
                                        QColor(),
                                        QColor(),
                                        d->m_selectionColor,
                                        d->m_selectedTextColor,
                                        d->m_paragraphSelections[i].first,
                                        d->m_paragraphSelections[i].second);
            node->markDirty(QSGNode::DirtyGeometry);
            return node;
            

            2.Texts are pass into via TextEdit
            3.UTF-8 used

            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