Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.7.1
-
MS Windows 7 Rus, Qt libraries 4.7.1 for Windows minGW 4.4 (LGPL), Qt Creator 2.1 RC1. Previously, I tested this code with Qt SDK for Windows 2010.5 (LGPL).
Description
Hello!
Discovered some regularity when working with QXmlSchema (schema.load): this function returns a "true" if the size of schema file up to 135 kB. Tested various schemes from the program's directories Microsoft and Autodesk.
I used this code:
QString str =
QFileDialog::getOpenFileName(this,"Import LandXML Schema","","*.xsd");
QFile schemaFile(str);
schemaFile.open(QIODevice::ReadOnly);
QXmlSchema schema;
if (schema.load(&schemaFile, QUrl::fromLocalFile(schemaFile.fileName())) == true)
qDebug("schema is valid");
else
qDebug("schema is invalid");
Sorry if I'm wrong.