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

Regression: ComboBox: the textbox doesn't support multiline text because it ignores formatting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.9.0, 5.9.1
    • Quick: Controls 2
    • None
    • Qt 5.9.1, Creator 4.3.1, Windows 10, Ubuntu 16.04.

    Description

      QML Type ComboBox in version Qt 5.9 behaves differently from Qt 5.8. In Qt 5.9 the textbox of a ComboBox ignores formatting and doesn't support multiline text and HTML.
       

      Here's a minimalistic example for producing the problem:
      main.qml:

      import QtQuick 2.8
      import QtQuick.Controls 2.1
      import QtQuick.Window 2.2
      
      
      ApplicationWindow  {
          visible: true
          width: 400
          height: 300
          title: qsTr("ComboBox test with Qt 5.8")
          //title: qsTr("ComboBox test with Qt 5.9")
      
          ComboBox {
              id: multilineComboBox
              anchors {
                  topMargin: 20
                  rightMargin: 20
                  leftMargin: 20
                  top: parent.top
                  right: parent.right
                  left: parent.left
              }
      
      
              model: [
                  "multiline:\n choise 1",
                  "multiline:\n choise 2",
                  "multiline:\n choise 3"
              ]
          }
      }
      
      
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            konst_777 Konstantin Shramko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes