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

QPlainTextEdit hides blank lines for certain Fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.0, 6.2.0
    • GUI: Text handling
    • Windows 10
      Windows 10 Pro x64
    • Windows

    Description

      The editor hides blank lines. When new lines are added, the line number only increases, and all added lines are not displayed.

      Minimal Qt Example:

      #include <QApplication>
      #include <QPlainTextEdit>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QFont font("DejaVu Sans");
          QPlainTextEdit edit;
          edit.setFont(font);
          edit.setPlainText("test\n\ntest\n");
          edit.show();
          return a.exec();
      }
      

      Attachments

        1. 1.png
          1.png
          79 kB
        2. 2.png
          2.png
          33 kB
        3. 65fb813c-7bf4-48c6-96bd-afd1ba4c6c82.png
          65fb813c-7bf4-48c6-96bd-afd1ba4c6c82.png
          154 kB
        4. 959d899e-1a8f-4759-b086-3a0b14749861.png
          959d899e-1a8f-4759-b086-3a0b14749861.png
          199 kB
        5. qsvncommit.cpp
          1 kB
        6. QtCreator_.ini
          12 kB
        7. image-2020-01-13-16-11-07-823.png
          image-2020-01-13-16-11-07-823.png
          20 kB
        8. image-2020-01-13-16-13-03-614.png
          image-2020-01-13-16-13-03-614.png
          19 kB
        9. image-2020-01-13-16-13-25-875.png
          image-2020-01-13-16-13-25-875.png
          18 kB
        10. image-2020-01-13-16-14-04-862.png
          image-2020-01-13-16-14-04-862.png
          19 kB
        11. image-2020-01-16-12-19-48-344.png
          image-2020-01-16-12-19-48-344.png
          6 kB
        12. image-2020-01-16-12-20-00-453.png
          image-2020-01-16-12-20-00-453.png
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dinazavr dinazavr
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes