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

windowText palette colour role not inherited by controls within ListView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.10.0 Alpha
    • 5.10
    • Quick: Controls 2
    • None
    • d3aef722da533c3b100ba653498c79986a44c9f9 => c32c776bf4bd0bc601cb78f9814036cb40b33b52

    Description

      import QtQml.Models 2.3
      import QtQuick 2.9
      import QtQuick.Controls 2.3
      import QtQuick.Layouts 1.3
      
      ApplicationWindow {
          id: window
          width: 600
          height: 600
          visible: true
      
          Button {
              text: "Set"
              z: 1
              anchors.right: parent.right
              onClicked: {
                  // Workaround
                  window.palette.windowText = "#00fffe"
                  // Also a workaround
      //            window.palette.tooltipBase = "red"
              }
          }
      
          palette.windowText: "#00ffff"
      
          ListView {
              anchors.fill: parent
              spacing: 30
      
              // Works
      //            model: ObjectModel {
      //                Button {
      //                    text: "Button"
      //                }
      
      //                Label {
      //                    text: "Label"
      //                }
      
      //                CheckBox {
      //                    text: "CheckBox"
      //                }
      //            }
      
              model: 1
              delegate: ColumnLayout {
                  Button {
                      text: "Button"
                  }
      
                  Label {
                      text: "Label"
                  }
      
                  CheckBox {
                      text: "CheckBox"
                  }
              }
          }
      
          // Works
      //    ColumnLayout {
      //        Button {
      //            text: "Button"
      //        }
      
      //        Label {
      //            text: "Label"
      //        }
      
      //        CheckBox {
      //            text: "CheckBox"
      //        }
      //    }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes