22                                const QString &path, 
const QString &providerKey )
 
   23  : 
QgsDataItem( 
Qgis::BrowserItemType::Project, parent, name, path, providerKey )
 
   25  mIconName = QStringLiteral( 
":/images/icons/qgis_icon.svg" );
 
   33  u.
layerType = QStringLiteral( 
"project" );
 
The Qgis class provides global constants for use throughout the application.
 
@ Populated
Children created.
 
@ ItemRepresentsFile
Item's path() directly represents a file on disk (since QGIS 3.22)
 
Base class for all items in the model.
 
void setToolTip(const QString &msg)
 
virtual void setState(Qgis::BrowserItemState state)
Set item state.
 
virtual Qgis::BrowserItemCapabilities capabilities2() const
Returns the capabilities for the data item.
 
QList< QgsMimeDataUtils::Uri > UriList
 
QgsMimeDataUtils::UriList mimeUris() const override
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
 
QgsProjectItem(QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
A data item holding a reference to a QGIS project file.
 
QString filePath
Path to file, if uri is associated with a file.
 
QString uri
Identifier of the data source recognized by its providerKey.
 
QString name
Human readable name to be used e.g. in layer tree.
 
QString layerType
Type of URI.