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

Text { } not reacting to changes to property 'textFormat' as expected

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      I've started to use the Markdown for Text {} feature in Qt 5.14.
      While it does work very well when initially setting Text.textFormat to Text.MarkdownText, its reaction to changes to that property apears to be incomplete.

      I have attached a fully working demo and an image illustrating the issue.

      Upon starting the demo, the Markdown is rendered properly, i.e. with bold and italic font and the line break is ignored. When unticking the checkbox, it is set to plain text which is also working properly.
      However when ticking the checkbox again, the line breaks are ignored again (as expected in Markdown), but the font is not rendered in bold or italic.

      I've also tried forceLayout() to no avail.

      I could not find the documentation mentioning any limitation in this regard. Is there anything I have to do or have I simply run into a bug here?

        Attachments

        1. main.qml
          0.8 kB
        2. Markdown.png
          Markdown.png
          96 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            graprar Moritz Gra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes