Hello! I have a GridView, its delegate is a Text.
What is the easiest way to tell GridView to size itself to fit its contents? I am currently trying to do it like this: We can calculate each cells' size with TextMetrics from the Text element in it. Then set all columns' and rows' width/height to the maximum width/height cell in it. Add these up and we have a width and height for GridView. Also this should happen after the elements are loaded from the model. I am wondering if there is a simpler solution that I overlooked. Thank you, Viki
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest