Details
Description
When a delegate in a ListView has its visible property set to false, the spacing for it should collapse as though the element does not exist. Instead a jarring blank space is left where the delegate would have been had it been visible in addition to spacing before and after the blank space.
Example:
import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") ListView { anchors.fill: parent model: ListModel { ListElement { name: "hi" } ListElement { name: "bye" } ListElement { name: "sad" } ListElement { name: "stay" } ListElement { name: "why" } } delegate: Label { text: name visible: name !== "sad" } } }
Attachments
Issue Links
- relates to
-
QTBUG-54767 Qt.Quick.Controls 2.0 MenuItem appears even when visible:false
-
- Open
-
-
QTBUG-60360 MenuItem is not hidden when visible=false
-
- Closed
-