Dear my friends... I am developing a database application with Qt and SuSE 9.1 . My QDataTable can retrieve and display the content of a table (from postgres) properly. I make the cursor with QSqlSelectCursor. But the problem is : if I clicked on of its row (record), than the displayed record (which I clicked) disappear from the QDataTable. Why is it so? Thank you very much in advance. ========= QSqlDatabase * bd = QSqlDatabase::addDatabase("QPSQL7"); bd->setHostName("192.168.23.1"); bd->setDatabaseName("kv"); bd->setUserName("postgres"); bd->setPassword("honestly"); if ( ! bd->open() ) { bd->lastError().showMessage(); return; } QString stringsql = QString("select c.custid, company, title, salutation, firstname, lastname, address, postcode, city, areacode, phone, mobilephone, fax, email, b.sent from %1 as c, sentbrochure as b where c.custid=b.custid order by custid") .arg(viewnya); QSqlSelectCursor * cur = new QSqlSelectCursor(stringsql, bd); custdataTable->setSqlCursor(cur, true, false); custdataTable->refresh(); __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail