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

Richtext with horizontal line, inserts new horizontal line when hitting enter

    XMLWordPrintable

Details

    Description

      With the following code, it is not possible to move the cursor after the horizontal line, and type in text.
      Also when hitting enter it inserts a new horizontal line.

      It would be expected that it would be possible to hit enter and only get a new line, without a horizontal line.
      Also that it would be possible to type something after the horizontal line.

      #include <QtGui>
      #include <QDebug>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);
      QTextEdit edit;
      edit.show();
      edit.setHtml("<html><body> <hr width=\"100%\"> </body></html>");
      return app.exec();
      }

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes