Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-133

Assert when using "horizontalAlignment: Text.AlignHCenter" with wrapped Text

    XMLWordPrintable

Details

    Description

      In Qt for MCUs 2.3 using "horizontalAlignment: Text.AlignHCenter" with wrapping makes the app to go into error hook:

      "Qt for MCUs error: Core:TextLine_NotValid:192, line: 458, params: 0, 0, 0.
      See https://doc.qt.io/QtForMCUs/qtul-error-handling.html for more information.
      Halting execution."

      Reproduces on desktop and on hardware.

      This works correctly within Design Studio and with regular Qt.

      Please find minimal reproducing example snippet below:

      import QtQuick 2.0
      
      Rectangle {
          width: 800
          height:480
          Text {
      
          width: 140
      
          horizontalAlignment: Text.AlignHCenter
          wrapMode: Text.WordWrap
      
          text: "Some long text to reproduce the issue where it asserts"
          }
      }
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes