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

windowText palette colour role not inherited by controls within ListView

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.10
    • Fix Version/s: 5.10.0 Alpha
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Commits:
      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

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            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