if i try to use
QStringList lines = QStringList::split( FIELD_SEP, resulttemp );
qDebug() << resulttemp;
qDebug() << lines;
then i will get error message as
/usr/lib/qt3/include/qglobal.h: In member function ‘void DatumForm::init()’:
/usr/lib/qt3/include/qglobal.h:975: error: too few arguments to function ‘void qDebug(const char*, ...)’
datumform.ui.h:55: error: at this point in file
/usr/lib/qt3/include/qglobal.h:975: error: too few arguments to function ‘void qDebug(const char*, ...)’
datumform.ui.h:56: error: at this point in file
make: *** [datumform.o] Error 1
then i used
void DatumForm::init()
{
readfile();
QStringList lines = QStringList::split( FIELD_SEP, resulttemp );
// qDebug() << resulttemp;
// qDebug() << lines;
printf( "resulttemp=%s\n", resulttemp.latin1() );
if (lines.isEmpty())
return;
Datumno_Val = lines[0].toInt();
Xdatum_Val = lines[1].toDouble();
Ydatum_Val = lines[2].toDouble();
Zdatum_Val = lines[3].toDouble();
}
to print resulttemp and message displayed in the console as
Key Press EventATUM
0: 0:123.000:456.000:789.000
1: 1:321.000:654.000:987.000
2: 2:963.000:852.000:741.000
3: 3:357.000:214.000:698.000
resulttemp=::::
drass:/home/dro_changed/dro_som1 #
Bookmarks