Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] How to limit QtQuick ComboBox display item count
Forum Updated to NodeBB v4.3 + New Features

[Solved] How to limit QtQuick ComboBox display item count

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 911 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dasun
    wrote on last edited by
    #1

    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.1

    ApplicationWindow {
    title: "My Application"
    minimumHeight: 600
    minimumWidth: 800
    visible: true
    ComboBox {
    model:100
    anchors.centerIn: parent
    }
    }@

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasun
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved