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

QPainter::drawStaticText() does not draw multiline text

    XMLWordPrintable

Details

    • 4d552815cf370c0d5abbbeb50ff1350b449e7bb2

    Description

      Suppose I want to draw a text like "line1\nline2" as a static text with 2 lines:
      line1
      line2

      But QPainter::drawStaticText() draws the text as a single line like:
      line1line2

      even if setWrapMode(QTextOption::WordWrap) is called.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes