From kde-devel Tue Dec 28 13:43:05 1999 From: Michael Koch Date: Tue, 28 Dec 1999 13:43:05 +0000 To: kde-devel Subject: Re: Grid for displaying database results X-MARC-Message: https://marc.info/?l=kde-devel&m=94638839826153 Am Sat, 11 Dec 1999 schrieb Tim Colgate: > Hi, > > I need to work with a database and want to display results of queries in > a grid. I would also like to be able to edit data in the grid and write > it back to the database. Are there any grid controls in QT/KDE that > allow: arbitrary number of rows and columns, editting of data in cells, > sorting of rows by (double-)clicking on column headers, dynamically > resizing numbers of rows/columns? > > If such a control doesn't currently exist, is anyone working on one? If > not, any suggestions as to the best starting point? I've had a look at > KTreeList which has some useful features (e.g. the sorting), but doesn't > look easy to turn into an editable grid. QTableView however is rather > limited. Am I missing something? QListView is the widget you have to use. Editing is not possible with this widget. In KSql I have such a widget which can do what you want. Have a look at it. Loot at my homepage (below) Ciao, Michael -- Michael Koch koch@kde.org m_koch@bigfoot.de http://heaven.riednet.wh.tu-darmstaft.de/~mkoch look here too: http://www.kde.org http://koffice.kde.org http://www.xnot.com/kmysql