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

List items in QML TextEdit are either unnecessarily or overly indented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.2
    • GUI: Text handling
    • None
    • macOS

    Description

      Hello,

       

      Users of my app (get-notes.com) reports that sometimes (in cases when I use Qt's Text components and not my custom editor), bullet points and other such lists are overly indented.

      To reproduce:

      import QtQuick
      
      Window {
          id: root
          width: 300
          height: 200
          visible: true
          title: qsTr("Hello World")
      
          Column {
              spacing: 10       
       
              Text {
                  id: textMarkdown
                  text: "List:\n- item1"
                  textFormat: TextEdit.MarkdownText
              }       
       
              Text {
                  id: textHtml
                  text: "<p>List:</p><ul><li>item1</li></ul>"
                  textFormat: TextEdit.RichText
              }
          }
      } 

      Which results in the attached image - the indentation is far too large for some users (and myself). Am I missing something? Or are there some undocumented CSS styles that can help change the indentation size?

      This issue might be a duplication of this: https://bugreports.qt.io/browse/QTBUG-1429 But 17 years later, it's still not fixed. I hope there is a solution I'm not aware of, so please let me know.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              rubymamis Ruby Mamistvalove
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes