Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.7.0
-
None
Description
please
- use the system's "light" palette
- run the application
- change the system's palette to "dark"
Only the first ComboBox popup background color is updated. The ComboBox instances created by the Repeater are not.
Objects created by Repeater are not found using QObject::findChildren, so the "hack" to update popup palettes in ApplicationWindow doesn't work.
This is a follow-up to QTBUG-124474.
Main.qml from the attached project:
import QtQuick import QtQuick.Controls import QtQuick.Layouts ApplicationWindow { width: 640 height: 480 visible: true title: qsTr("Hello World") ColumnLayout { // palette update works ComboBox { model: ["One", "Two", "Three"] Component.onCompleted: { console.log("POPUP created", popup); popup.objectName = "combobox1"; } } Repeater { model: 3 // no palette update delegate: ComboBox { model: ["REP One", "REP Two", "REP Three"] Component.onCompleted: { console.log("REPATER POPUP created", popup); popup.objectName = "combobox2"; } } } } }