29    switch ( sublayer.type() )
 
   32        if ( sublayer.skippedContainerScan()
 
   34             || ( !ignoreUnknownFeatureCount &&
 
   42        if ( sublayer.skippedContainerScan() )
 
 
   61  const QFileInfo info( path );
 
   63  QString name = info.completeBaseName();
 
   66  if ( info.suffix().compare( QLatin1String( 
"adf" ), Qt::CaseInsensitive ) == 0 )
 
   68    const QString dirName = info.path();
 
   69    name = QFileInfo( dirName ).completeBaseName();
 
   72  else if ( info.fileName().compare( QLatin1String( 
"ept.json" ), Qt::CaseInsensitive ) == 0 )
 
   74    const QString dirName = info.path();
 
   75    name = QFileInfo( dirName ).completeBaseName();
 
 
@ Group
Composite group layer. Added in QGIS 3.24.
 
@ Plugin
Plugin based layer.
 
@ TiledScene
Tiled scene layer. Added in QGIS 3.34.
 
@ Annotation
Contains freeform, georeferenced annotations. Added in QGIS 3.16.
 
@ VectorTile
Vector tile layer. Added in QGIS 3.14.
 
@ Mesh
Mesh layer. Added in QGIS 3.2.
 
@ PointCloud
Point cloud layer. Added in QGIS 3.18.
 
Contains details about a sub layer available from a dataset.
 
static bool sublayerDetailsAreIncomplete(const QList< QgsProviderSublayerDetails > &details, QgsProviderUtils::SublayerCompletenessFlags flags=QgsProviderUtils::SublayerCompletenessFlags())
Returns true if the sublayer details are incomplete, and require a more in-depth scan.
 
QFlags< SublayerCompletenessFlag > SublayerCompletenessFlags
 
static QString suggestLayerNameFromFilePath(const QString &path)
Suggests a suitable layer name given only a file path.
 
@ IgnoreUnknownGeometryType
Indicates that an unknown geometry type should not be considered as incomplete.
 
@ IgnoreUnknownFeatureCount
Indicates that an unknown feature count should not be considered as incomplete.
 
@ Uncounted
Feature count not yet computed.
 
@ UnknownCount
Provider returned an unknown feature count.