[Development] Deprecation of Qt Quick Controls 1
NIkolai Marchenko
enmarantispam at gmail.com
Wed Feb 7 16:03:22 CET 2018
I meant, I will *lose* model:10 syntax like this
(mailing lists and unfixable wording errors, ugh)
On Wed, Feb 7, 2018 at 6:02 PM, NIkolai Marchenko <enmarantispam at gmail.com>
wrote:
> Thanks, I will see how it works. Though I will use the model: 10 syntax
> like this :(
>
> On Wed, Feb 7, 2018 at 5:46 PM, Helmut Mülner <helmut.muelner at gmail.com>
> wrote:
>
>> Ø And basically the only thing that really hurts me with controls 2 is
>> that combobox becomes quite horrible
>>
>>
>>
>> I use something like this for a decent looking combobox:
>>
>>
>>
>> ComboBox {
>>
>> id: *comboBox*
>>
>> Layout.fillWidth: true
>>
>> height: 30
>>
>> Layout.maximumHeight: 30
>>
>> Layout.minimumHeight: 30
>>
>> font.pointSize: 10
>>
>> anchors.verticalCenter: *parent*.verticalCenter
>>
>> textRole: "name"
>>
>> model: myModel
>>
>> delegate: ItemDelegate {
>>
>> width: *comboBox*.width
>>
>> height: 30
>>
>> contentItem: Text {
>>
>> id: *itemDelegateText*
>>
>> text: name
>>
>> font: *comboBox*.font
>>
>> elide: Text.ElideRight
>>
>> verticalAlignment: Text.AlignVCenter
>>
>> }
>>
>> highlighted: *comboBox*.highlightedIndex == index
>>
>> }
>>
>> }
>>
>>
>>
>> Cheers,
>>
>> Helmut
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180207/241f596b/attachment.html>
More information about the Development
mailing list