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

Long words get cut in QMessageBox because of QLabel implementation detail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.6.0, 4.6.1, 4.6.2
    • None
    • Maemo5 and I would expect this also to happen quite often on S60

    Description

      Scenario:
      QMessageBox with a message containing a long word, e.g. a file name plus path.

      Expected result:
      The complete text is visible.

      Actual result:
      The long word is cut at the screen border if the dialog is not wide enough, e.g. on Maemo5 where the message box is quite slim with a big font.

      Reason:
      QLabel is using QTextOption::TextWordWrap when wordWrap=true instead of QTextOption::WrapAtWordBoundaryOrAnywhere around line QLabel.cpp:1483

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            rengels Ralf Engels
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes