#include <QDeclarativeTypeLoader>Inherits: QObject.
| enum | Option { None, PreserveParser } |
| flags | Options |
| QDeclarativeTypeLoader ( QDeclarativeEngine * ) | |
| ~QDeclarativeTypeLoader () | |
| void | clearCache () |
| QDeclarativeTypeData * | get ( const QUrl & url ) |
| QDeclarativeTypeData * | get ( const QByteArray & data, const QUrl & url, Options options = None ) |
| QDeclarativeQmldirData * | getQmldir ( const QUrl & url ) |
| QDeclarativeScriptData * | getScript ( const QUrl & url ) |
This enum defines the options that control the way type data is handled.
| Constant | Value | Description |
|---|---|---|
| QDeclarativeTypeLoader::None | 0 | The default value, indicating that no other options are enabled. |
| QDeclarativeTypeLoader::PreserveParser | 1 | The parser used to handle the type data is preserved after the data has been parsed. |
The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.
Returns a QDeclarativeTypeData for the specified url. The QDeclarativeTypeData may be cached.
Returns a QDeclarativeTypeData for the given data with the provided base url. The QDeclarativeTypeData will not be cached.
The specified options control how the loader handles type data.
Return a QDeclarativeQmldirData for url. The QDeclarativeQmldirData may be cached.
Return a QDeclarativeScriptData for url. The QDeclarativeScriptData may be cached.