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

drawText

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.4
    • 4.7.2
    • GUI: Painting
    • None
    • Windows XP SP3, Visual Studio 2008
    • f370dd07560c449ba17d13475721f7d3b46e6b24

    Description

      drawText(QRectF &rect, int flags, const QString &text, QRectF brect = 0)
      since 4.7.2
      if you have a text which does not fit inlen into the rect, the text will not be drawn at all.
      like this: painter.drawText(rect, Qt::AlignLeft, myText);
      in Version 4.7.1 is was cutted with the rect given in parameter 0.

      if you use now the flag Qt::TextDontClip it results also in a non wanted way. The text will overlapp the rectangle.
      like this: painter.drawText(rect, Qt::AlignLeft | Qt::TextDontClip, myText);

      Rectangles on Printout only drawn to have a better understanding what happen.

      Attachments

        1. Statistiks 4.7.2 Clip.pdf
          19 kB
        2. Statistiks 4.7.2 DontClip.pdf
          20 kB
        3. Statistiks 4.7.1 Clip.pdf
          20 kB
        4. Statistiks 4.7.1 DontClip.pdf
          20 kB
        5. code_extract.cpp
          8 kB
        6. code_extract.cpp
          8 kB
        7. main.cpp
          0.5 kB
        8. main.cpp
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            stefanlatsch Stefan Latsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes