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

Qt5 cannot be built without libmd4c

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.18
    • None

    Description

      When qt5 is built without libmd4c, the following build error occured:

       

      qt5/qtdeclarative/src/quick/items/qquicktext.cpp: In member function ‘virtual void QQuickText::componentComplete()’: 
      qt5/qtdeclarative/src/quick/items/qquicktext.cpp:2762:32: error: ‘class QQuickTextDocumentWithImageResources’ has no membe 
      r named ‘setMarkdownText’; did you mean ‘toMarkdown’? 
                      d->extra->doc->setMarkdownText(d->text); 
                                     ^~~~~~~~~~~~~~~ 
                                     toMarkdown

      The code should be wrapped with #if QT_CONFIG(textmarkdownreader) directive:

                 if (d->markdownText) 
                     d->extra->doc->setMarkdownText(d->text); 
                 else 
                     d->extra->doc->setText(d->text);

       

      Attachments

        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
            hingwah.wan Hingwah Wan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes