Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88193

if the TextEdit contains '[' or ']' character ,line height error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12
    • None
    • qt5.12.7 official clang11.0.0
    • macOS

    Description

      I get the dynamic height of fixed width through QFontmetrics

      QFontMetrics metrics(qApp->font()); 
      QRect rect = metrics.boundingRect(QRect(0,0,maxWidth,0),Qt::TextWrapAnywhere,text);
      return rect.height();

      Text and Label work properly, and TextEdit displays an error if it contains [height]

       

      Attachments

        1. 1604563229191.jpg
          1604563229191.jpg
          54 kB
        2. 1604563235541.jpg
          1604563235541.jpg
          45 kB
        3. textarea-test.zip
          8 kB
        4. textarea-test.zip
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lsnbing 陈 佳
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes