Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是想根据模型在 qml 中的项目文本大小来调整列表框的宽度。有没有可能,有什么想法。
您可以在项目paintedWidth的方法中使用文本的属性Component.onCompleted并相应地进行更改parent.width。
paintedWidth
Component.onCompleted
parent.width