[Solved] How to limit QtQuick ComboBox display item count
-
If I have hundreds of items in ComboBox the drop down window takes all screen height and no scrollbar to navigate. I want it to limit number of items appear in drop down window in Combobox(as most of native ComoboBox does). How can I do that? here some sample code to reproduce the issue. I'm using Qt 5.1.0.
@import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.1ApplicationWindow {
title: "My Application"
minimumHeight: 600
minimumWidth: 800
visible: true
ComboBox {
model:100
anchors.centerIn: parent
}
}@ -
Sorry for troubling you guys. I Just found it's a known issue and will be address on next release (5.2)
https://bugreports.qt-project.org/browse/QTBUG-31568