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

QPainter::drawStaticText() does not draw multiline text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.8.0 Beta
    • Labels:
      None
    • Environment:
      Windows 10
      MSVC 2015
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-56346
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            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