[Interest] a few questions about QML Components
Andre Somers
andre at familiesomers.nl
Tue May 20 22:28:20 CEST 2014
Nurmi J-P schreef op 19-5-2014 14:29:
> On 19 May 2014, at 12:51, Alexander Ivash <elderorb at gmail.com> wrote:
>
>> I was trying to use QML components in simple android application but confronted several issues:
>>
>> 1. I couldn't find any API allowing to adjust widths of columns in TableView based on the content. Do I understand right that the only way to achieve this is to go through all the entries in model manually and calculate maximum width using 'paintedWidth' of Text element? Does the better way exist? For future would be really nice to have some property like 'autoAdjustColumns’.
> QtQuick.Controls 1.2 (Qt 5.3) introduces TableView::resizeColumnsToContens() and TableViewColumn::resizeToContents().
Stupid question probably, but why arn't these written in a declarative way?
André
More information about the Interest
mailing list