Thanks,though I have already written the database...and sorry for bothering you again but I am quite confused about some things in QTreeView and QSqlQuery.For example,how do I load the database???I found this one on the internet : http://www.qtforum.org/article/33291...qtreeview.html
and although it's in C++ (I think),I guess that it's done the same way in Python(besides the syntax). How does he load the database in this if there is already a database???And the query.next() ,how exactly does it work??For instance,does it read each row at a time if we have multiple columns or each cell at a time?