Hello,
Thanks for your feedback.
Marc Mutz wrote:
> (...)
> - It would be nice if QXmlSchema::load overloads were statics ("named ctors"):
> - QXmlSchema schema;
> - if ( !schema.load( ... ) )
> + const QXmlSchema schema = QXmlSchema::load( ... );
> + if ( !schema.isValid() )
> I think you should strive to ban two-step initialisation in your APIs.
In this case, we decided to not load the schema in the constructor
because of two reasons:
1) loading the schema can be expensive, so the user should have full
control over when to load it
2) the source might not be available yet when the QXmlSchema object is
created (e.g. when using a schema as member object of some class and
retrieving the schema later)
>
> - QXmlStreamReader can use a QString as input. QXmlSchemaValidator doesn't.
> -> since these two will probably often be used side-by-side, I think it'd be
> prudent if they both took the same inputs. (Then again, QXmlStreamReader
> taking QString is probably the mistake here)
I agree, an overload with QString could be handy. We will discuss this...
Regards,
Peter
>
> Thanks,
> Marc
>
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback