| Trolltech Home | Qt-solutions Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hi all, I am developing an application that uses QTable. My application requires 300,000 rows. I want to hide all rows at startup. If I use function hideRow(int row), I need to execute same function 300,000 times. But this is not feasible, rows hiding will take more than 1/2 hour. Can any one suggest some other efficient alternative? Regards, Vijay_Mehta Satyam Computers, BLA DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
I don't see a QT Solution for QTable. perhaps you should try the other mailing list, QT-Interest. -----Original Message----- From: Vijay_Mehta [mailto:Vijay_Mehta@xxxxxxxxxx] Sent: Thursday, February 08, 2007 9:35 AM To: qt-solutions@xxxxxxxxxxxxx Subject: Hide all rows in QTable Hi all, I am developing an application that uses QTable. My application requires 300,000 rows. I want to hide all rows at startup. If I use function hideRow(int row), I need to execute same function 300,000 times. But this is not feasible, rows hiding will take more than 1/2 hour. Can any one suggest some other efficient alternative? Regards, Vijay_Mehta Satyam Computers, BLA DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated..
QTable is not designed to handle large amounts of rows and/or columns. Since you can never show all the items at once (screen and/or paper limitations), you only need the ones that are showing in the table at any given moment. Use the MVC architecture to show only the ones that are currently in the display area. Or try QicsTable <http://www.ics.com/products/qt/qtgraphcharttable/qicstable/index.html>. Keith On 02-08-2007 11:35 AM, "Vijay_Mehta" wrote: > Hi all, > I am developing an application that uses QTable. My application requires > 300,000 rows. > I want to hide all rows at startup. > If I use function hideRow(int row), I need to execute same function 300,000 > times. > But this is not feasible, rows hiding will take more than 1/2 hour. > > Can any one suggest some other efficient alternative? > > Regards, > Vijay_Mehta > Satyam Computers, BLA
Re: Hide all rows in QTableHai
I believe you can use setNumRows ( 0 ) which clears all cells from Table.
Regards
Deepa
----- Original Message -----
From: Keith Esau
To: Qt Solutions
Sent: Thursday, February 08, 2007 11:19 PM
Subject: Re: Hide all rows in QTable
QTable is not designed to handle large amounts of rows and/or columns. Since you can never show all the items at once (screen and/or paper limitations), you only need the ones that are showing in the table at any given moment. Use the MVC architecture to show only the ones that are currently in the display area.
Or try QicsTable <http://www.ics.com/products/qt/qtgraphcharttable/qicstable/index.html>.
Keith
On 02-08-2007 11:35 AM, "Vijay_Mehta" wrote:
Hi all,
I am developing an application that uses QTable. My application requires 300,000 rows.
I want to hide all rows at startup.
If I use function hideRow(int row), I need to execute same function 300,000 times.
But this is not feasible, rows hiding will take more than 1/2 hour.
Can any one suggest some other efficient alternative?
Regards,
Vijay_Mehta
Satyam Computers, BLA
DISCLAIMER
âThe information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you"
Qt3's QTable class can't handle a lot of items, but Qt4's QTableView can. I made a blog entry earlier this year which showed off a little app I wrote that has a hundred and one million rows. http://www.kdedevelopers.org/node/2491 -Benjamin Meyer On Thursday 08 February 2007 18:49, Keith Esau wrote: > QTable is not designed to handle large amounts of rows and/or columns. > Since you can never show all the items at once (screen and/or paper > limitations), you only need the ones that are showing in the table at any > given moment. Use the MVC architecture to show only the ones that are > currently in the display area. > > Or try QicsTable > <http://www.ics.com/products/qt/qtgraphcharttable/qicstable/index.html>. > > Keith > > On 02-08-2007 11:35 AM, "Vijay_Mehta" wrote: > > Hi all, > > I am developing an application that uses QTable. My application requires > > 300,000 rows. > > I want to hide all rows at startup. > > If I use function hideRow(int row), I need to execute same function > > 300,000 times. > > But this is not feasible, rows hiding will take more than 1/2 hour. > > > > Can any one suggest some other efficient alternative? > > > > Regards, > > Vijay_Mehta > > Satyam Computers, BLA
Attachment:
Attachment:
pgpTXJYqnogx4.pgp
Description: PGP signature