Database path issue ( Symbian )

void QSqlDatabase::setDatabaseName ( const QString amp; name ) on symbian shows various result. 
The separators are creating the trouble, even though forward or backward slashes are supposed to behave alike in Qt.

Converting separators to native form as follows with the help of QFileInfo class.

QFileInfo fileInfo(fileName);
::setDatabaseName(QDir::toNativeSeparators(fileInfo.absoluteFilePath()));

No comments:

Post a Comment