Nurmi J-P schreef op 19-5-2014 14:29: > On 19 May 2014, at 12:51, Alexander Ivash <elder...@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é _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest