Dear my friends... I am using Qt 3.2, SuSE 9.1 and Postgres 7.2 . I want to use QDate and QTime but I have this error message in comiling process: In file included from .ui/depanform.cpp:23: depanform.ui.h: In member function `virtual void depanForm::cariappSlot()': depanform.ui.h:150: error: variable `QDate appdate' has initializer but incomplete type depanform.ui.h:150: error: incomplete type 'QDate' cannot be used to name a scope depanform.ui.h:151: error: variable `QTime apptime' has initializer but incomplete type depanform.ui.h:151: error: incomplete type 'QTime' cannot be used to name a scope make: *** [.obj/depanform.o] Error 1 patrixlinux@patrix:~/arsip/proyek/qt/kv/client> Why is it so? I don't understand the meaning or the showed error message. Please explain it to me. Thank you very much. ===================== void depanForm::init() { workspace = new QWorkspace(this); workspace->setScrollBarsEnabled(true); setCentralWidget(workspace); t2 = new QTimer(); connect( t2, SIGNAL(timeout()), SLOT(cariappSlot()) ); t2->start( 6000, FALSE ); } void depanForm::cariappSlot() { bd = QSqlDatabase::addDatabase("QPSQL7", "OTHER"); bd->setHostName("192.168.23.237"); bd->setDatabaseName("kv"); bd->setUserName("postgres"); bd->setPassword(""); if ( ! bd->open() ) { bd->lastError().showMessage(); } int insid = 6; int jmlapp = 0; QDate appdate = QDate::currentDate(); QTime apptime = QTime::currentTime(); QString sqlcekapp = QString("select count(noapp) from appointment where salesid='%1' and date='%1' and time='%1'") .arg(insid) .arg(appdate.toString("yyyy-MM-dd")) .arg(apptime.toString("hh:mm")); QSqlQuery querycekapp(sqlcekapp); querycekapp.prepare(sqlcekapp); querycekapp.exec(); while ( querycekapp.next() ){ jmlapp = querycekapp.value(0).toInt(); } if (jmlapp > 0){ QMessageBox::warning(this, "Warning !", "You have an appointment"); } } __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail