[Interest] ComboBox QtQuick Controls 2 behavior

Freddy Martinez Garcia freddy311082 at gmail.com
Sun Oct 9 02:20:36 CEST 2016


Sorry, I forgot sent the code and some screenshots. Find all attached to
this message

Regards

On October 8, 2016 at 9:19:08 PM, Freddy Martinez Garcia (
freddy311082 at gmail.com) wrote:

Hi guys…

I’m trying to use the new widgets for QtQuick Controls 2. Attached you’ll
find my code… In first place you’ll find 3 combobox with some config to be
applied to the GUI…

The problems what I see are the following:

1.- when I open the combobox, if I click in other place inside the window,
the popup doesn’t close by it self
2.- the 3rd combobox has all colors defined for material and universal
styles. When I open this combobox, the entire list  and I’ll like to give a
height to the popup componente or say to the combobox how much items I
wanna show.
3.- how can I show the scroll bar inside the combobox.
4.- I have a delegate defined for the third comboox and I’ll like to show
no just text of the color selected, I’ll to show the item as was selected
by the user, I mean, when the user select a color, I’ll to show in the
combobox the rectangle with the color and the text, exactly in the same way
as I have defined in my delegate

Can you help me guys?

I’ve not a lot experience using Qt Quick Controls 2

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161008/70176c22/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-10-08 at 9.12.31 PM.png
Type: image/png
Size: 59750 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161008/70176c22/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-10-08 at 9.15.10 PM.png
Type: image/png
Size: 176337 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161008/70176c22/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestCombo.qml
Type: application/octet-stream
Size: 7712 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161008/70176c22/attachment.obj>


More information about the Interest mailing list