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

drawText

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes