[Qt-interest] Problem in QTable::setRowStretchable

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Sat Dec 12 14:46:51 CET 2009


On Saturday 12 December 2009 13:37:34 S.P 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? 

Delegate with a sizeHint perhaps ... this would only resize the visible 
columns


> Thanks a lot in advance.
>
>
>
>       New Email names for you!
> Get the Email name you've always wanted on the new @ymail and
> @rocketmail. Hurry before someone else does!
> http://mail.promotions.yahoo.com/newdomains/aa/





More information about the Qt-interest-old mailing list