[Qt-interest] Problem in QTable::setRowStretchable

KC Jones kc at asperasoft.com
Mon Dec 14 19:40:14 CET 2009


setRowStretchable() pertains to Q3Table objects, not QTable, right?
Any chance of migrating to the use of QTableView?  If the data can
contain millions of rows, sounds like you really would benefit from
using the model/view classes.

If you were using either QTableView or QTableWidget, you could access
the QHeaderView (horizontal or vertical) and set a global stretch
policy QHeaderView::ResizeMode that might work for you.

On Sat, Dec 12, 2009 at 4:37 AM, S.P <iraniangirl9999 at yahoo.com> wrote:
>
> Dear All,
>
> I have an object of QTable which can have any number of rows and cols. The user can set any number of rows by selecting a file which contains his\her information.Then QTable object will be filled with the information of this file.I have to use QTable::setRowStretchable in a loop for each row whenever I load different size information( often this information has milion rows ) inorder to fit the entire zone of the table without having extra space and calling setRowStretchable for this large amount of rows is very time consuming.Does anybody know how I can reduce the stretching time? Is there any way to set the stretch property of entire table at first without any need to set it for each row after loading different size information?
>
> Thanks a lot in advance.
>
> ________________________________
> Get your new Email address!
> Grab the Email name you've always wanted before someone else does!
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list