Closed BLumia closed 12 months ago
dtkdeclarative: 使用 chameleon QML 主题时,PageIndicator 组件无法被正常显示,提示 DS.Style.control.width 为 undefined ( https://github.com/linuxdeepin/dtkdeclarative/blob/master/src/qml/PageIndicator.qml#L22 )。
deepin v23 develop 源 master 分支版本 dtkdeclarative(4e26734)
尝试启动 dtkdeclarative 所附带的示例应用 qml-inspect (注:exhibition 没问题是因为它里面没包含 PageIndicator 示例)
qml-inspect
无法启动,报错:
qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: Row called polish() inside updatePolish() of Row qrc:/dtk/declarative/qml/PageIndicator.qml:31:18: QML Row: possible QQuickItem::polish() loop ...
可以正常展示 PageIndicator。
No response
似乎在 https://github.com/linuxdeepin/dtkdeclarative/commit/71b1276af5569989ed08362f303dc124bd9bf3a0 中修复了。
SUMMARY | 问题概要
dtkdeclarative: 使用 chameleon QML 主题时,PageIndicator 组件无法被正常显示,提示 DS.Style.control.width 为 undefined ( https://github.com/linuxdeepin/dtkdeclarative/blob/master/src/qml/PageIndicator.qml#L22 )。
DTK and OS VERSIONS | DTK&系统版本信息
deepin v23 develop 源 master 分支版本 dtkdeclarative(4e26734)
Minimal Reproducible Case Code | 最小复现案例代码
尝试启动 dtkdeclarative 所附带的示例应用
qml-inspect
(注:exhibition 没问题是因为它里面没包含 PageIndicator 示例)OBSERVED RESULT | 观察到的结果
无法启动,报错:
EXPECTED RESULT | 期望的结果
可以正常展示 PageIndicator。
ADDITIONAL INFORMATION | 额外补充
No response