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

Font and locale inheritance for popups

    XMLWordPrintable

Details

    • a40591931dd372829982055d4000c5caf3df9d07 a9735e783761cc2f98001cb72e6aa37315b1af70

    Description

      QQuickPopup is a QObject, not a QQuickControl, so it doesn't inherit fonts correctly. We need to make QQuickPopup::popupItem() inherit its font from QQuickPopup::parentItem().

      A test case with ComboBox:

      import QtQuick 2.3
      import Qt.labs.controls 1.0
      
      ApplicationWindow {
          id: window
          width: 400
          height: 600
          visible: true
      
          font.family: "Courier"
      
          Pane {
              anchors.centerIn: parent
              anchors.verticalCenterOffset: -height
      
              font.pixelSize: 30
      
              Column {
                  spacing: 20
      
                  Button {
                      text: "Button"
                  }
      
                  ComboBox {
                      model: ["ComboBox", "With", "Plenty", "Of", "Items"]
                  }
              }
          }
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-50984
          # Subject Branch Project Status CR V

          Activity

            People

              Unassigned Unassigned
              jpnurmi J-P Nurmi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews