<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QT QML combobox size in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322518#M5012</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/405084"&gt;@JamesBallard1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I can scroll down in the list if it goes off screen as you said. I've modified the implicitHeight property but It reduces the height of the button itself. Indeed, I would like to limit the height of the popup.&lt;/P&gt;&lt;P&gt;So, I did a workaround, I modified the combobox popup "topMargin" property once the comobox model is set.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;myCombobox&lt;/SPAN&gt;[&lt;SPAN&gt;'popup'&lt;/SPAN&gt;].topMargin = 340&lt;/PRE&gt;&lt;P&gt;I always still can scroll down in the list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's what I looked for.&lt;/P&gt;&lt;P&gt;Thanks again for your reply&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 16:14:39 GMT</pubDate>
    <dc:creator>GISiste</dc:creator>
    <dc:date>2025-03-11T16:14:39Z</dc:date>
    <item>
      <title>QT QML combobox size</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1321128#M4996</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354484"&gt;@ALL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My mobile app contains a UI to let users doing some requests to select data around here position.&lt;/P&gt;&lt;P&gt;I've two combobox listing the possible values to search. The search function works fine and return the desired results.&lt;/P&gt;&lt;P&gt;Here's the app UI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qebcg01n.png" style="width: 162px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127647i9E44F994B17821B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="qebcg01n.png" alt="qebcg01n.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;When&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;display&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;values&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;combobox&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;both&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;them&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;it&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;takes&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;all&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;height&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;app&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;s&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;window&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;there&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;any&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;way&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;to&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;limit&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;size&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;list&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;allow&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;possibility&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;to&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;scroll?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xelzqh51.png" style="width: 164px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127648iE6707D1F03C84DDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="xelzqh51.png" alt="xelzqh51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;Here's my code managing the two combobox:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;            Flickable {
                anchors.fill: parent
                contentHeight: optionsLayout.height + 30 * scaleFactor
                GridLayout {
                    columns: 2
                    id: optionsLayout
                    anchors {
                        top: parent.top;
                        topMargin: 10*scaleFactor;
                        leftMargin: 10*scaleFactor;
                        rightMargin: 10*scaleFactor;
                        left: parent.left;
                        right:parent.right;
                    }
                    Text {
                        font.bold: true
                        Layout.columnSpan: 2
                        text : "Liste 1"
                        horizontalAlignment : Text.AlignHCenter
                        verticalAlignment: Text.AlignVCenter
                        font.pixelSize: 12 * scaleFactor
                        Layout.fillHeight: true
                        Layout.fillWidth: true
                    }
                    ComboBox {
                        model:domainesModel
                        Layout.columnSpan: 2
                        Layout.fillHeight: true
                        Layout.fillWidth: true
                        delegate: Item{
                        height: 35 * scaleFactor
                        Row {
                            spacing: 0 * scaleFactor
                            CheckBox {
                                id: checkDis
                                scale : 1.5
                                checkState: checked ? "Checked" : "Unchecked"
                                onClicked: {
                                    myFunction()
                               }
                            }
                            Text {
                                text : libelle
                                horizontalAlignment : Text.AlignLeft
                                verticalAlignment: Text.AlignVCenter
                                font.pixelSize: 12 * scaleFactor
                                height: parent.height
                                elide: Text.ElideRight
                            }
                        }
                      }
                    }
                    Text {
                        font.bold: true
                        Layout.columnSpan: 2
                        text : "Liste 2"
                        horizontalAlignment : Text.AlignHCenter
                        verticalAlignment: Text.AlignVCenter
                        font.pixelSize: 12 * scaleFactor
                        Layout.fillHeight: true
                        Layout.fillWidth: true
                    }
                    ComboBox {
                        model:famillesModel
                        Layout.columnSpan: 2
                        Layout.fillHeight: true
                        Layout.fillWidth: true
                        delegate: Item{
                        height: 35 * scaleFactor
                        Row {
                            spacing: 0*scaleFactor
                            CheckBox {
                                id: checkVis
                                scale : 1.5
                                checkState: checked ? "Checked" : "Unchecked"
                                onClicked: {
                                     myFunction()
                               }
                            }
                            Text {
                                text : libelle
                                horizontalAlignment : Text.AlignLeft
                                verticalAlignment: Text.AlignVCenter
                                font.pixelSize: 12 * scaleFactor
                                height: parent.height
                                elide: Text.ElideRight
                            }
                        }
                      }
                    }
                }
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1321128#M4996</guid>
      <dc:creator>GISiste</dc:creator>
      <dc:date>2025-03-11T16:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: QT QML combobox size</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1321425#M5000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/289976"&gt;@GISiste&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;A ComboBox in QML should be scrollable by default once it goes off screen. You should be able to limit the height of the combobox by using implicitHeight property.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.qt.io/qt-6/qml-qtquick-item.html#implicitHeight-prop" target="_blank"&gt;https://doc.qt.io/qt-6/qml-qtquick-item.html#implicitHeight-prop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 22:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1321425#M5000</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2023-08-22T22:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: QT QML combobox size</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322025#M5008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use solution from &lt;A href="https://stackoverflow.com/questions/31411844/how-to-limit-the-size-of-drop-down-of-a-combobox-in-qml" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On form Completed event I use code below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    Component.onCompleted: {
        reportTypeCombo.popup.contentItem.implicitHeight = Qt.binding(function () {
                return Math.min(app.isLandscape ? 184 : 276, reportTypeCombo.popup.contentItem.contentHeight);
            });
    }&lt;/LI-CODE&gt;&lt;P&gt;You can set each of your comboxes individualy.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322025#M5008</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-08-24T07:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: QT QML combobox size</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322518#M5012</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/405084"&gt;@JamesBallard1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I can scroll down in the list if it goes off screen as you said. I've modified the implicitHeight property but It reduces the height of the button itself. Indeed, I would like to limit the height of the popup.&lt;/P&gt;&lt;P&gt;So, I did a workaround, I modified the combobox popup "topMargin" property once the comobox model is set.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;myCombobox&lt;/SPAN&gt;[&lt;SPAN&gt;'popup'&lt;/SPAN&gt;].topMargin = 340&lt;/PRE&gt;&lt;P&gt;I always still can scroll down in the list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's what I looked for.&lt;/P&gt;&lt;P&gt;Thanks again for your reply&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322518#M5012</guid>
      <dc:creator>GISiste</dc:creator>
      <dc:date>2025-03-11T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: QT QML combobox size</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322519#M5013</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Actually, I saw that post on stackoverflow but didn't test the suggestion. As, I explained in my previous response I modified my compbobx popup "topMargin" property and did the results I looked for. This moves the popup from top to bottom.&lt;/P&gt;&lt;P&gt;Thanks again for your suggestion&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/qt-qml-combobox-size/m-p/1322519#M5013</guid>
      <dc:creator>GISiste</dc:creator>
      <dc:date>2023-08-25T14:19:08Z</dc:date>
    </item>
  </channel>
</rss>

