QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Deprecated List
Member QgsScaleBarSettings::setBrush2 (const QBrush &brush)
use setAlternateFillSymbol() instead
Member QgsGraduatedSymbolRenderer::useSymmetricMode () const
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::setMode (Mode mode)
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::mode () const
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::Mode
since QGIS 3.10 use QgsClassificationMethod::MethodId instead
Member QgsCategorizedSymbolRenderer::symbolForValue (const QVariant &value) const
use variant which takes a second bool argument instead.
Member QgsCategorizedSymbolRenderer::skipRender ()
No longer used, will be removed in QGIS 4.0
Member QgsScaleBarSettings::setLineCapStyle (Qt::PenCapStyle style)
use setLineSymbol() instead
Member QgsScaleBarSettings::lineCapStyle () const
use lineSymbol() instead
Member QgsScaleBarSettings::setLineJoinStyle (Qt::PenJoinStyle style)
use setLineSymbol() instead
Member QgsScaleBarSettings::lineJoinStyle () const
use lineSymbol() instead
Member QgsGraduatedSymbolRenderer::setUseSymmetricMode (bool useSymmetricMode)
since QGIS 3.10 use classficationMethod instead
Member QgsScaleBarSettings::brush2 () const
use alternateFillSymbol() instead
Member QgsScaleBarSettings::setBrush (const QBrush &brush)
use setFillSymbol() instead
Member QgsScaleBarSettings::brush () const
use fillSymbol() instead
Member QgsScaleBarSettings::setPen (const QPen &pen)
use setLineSymbol() instead.
Member QgsScaleBarSettings::pen () const
use lineSymbol() instead.
Member QgsScaleBarSettings::setLineWidth (double width)
use setLineSymbol() instead.
Member QgsScaleBarSettings::lineWidth () const
use lineSymbol() instead.
Member QgsScaleBarSettings::setLineColor (const QColor &color)
use setLineSymbol() instead.
Member QgsScaleBarSettings::lineColor () const
use lineSymbol() instead.
Member QgsGraduatedSymbolRenderer::createRenderer (QgsVectorLayer *vlayer, const QString &attrName, int classes, Mode mode, QgsSymbol *symbol, QgsColorRamp *ramp, const QgsRendererRangeLabelFormat &legendFormat=QgsRendererRangeLabelFormat(), bool useSymmetricMode=false, double symmetryPoint=0.0, const QStringList &listForCboPrettyBreaks=QStringList(), bool astride=false)
since QGIS 3.10
Member QgsSymbolRenderContext::setMapUnitScale (const QgsMapUnitScale &scale)
Will be removed in QGIS 4.0
Member QgsSymbolRenderContext::mapUnitScale () const
Will be removed in QGIS 4.0
Member QgsSymbolRenderContext::setOutputUnit (QgsUnitTypes::RenderUnit u)
No longer used and will be removed in QGIS 4.0
Member QgsSymbolRenderContext::outputUnit () const
No longer used and will be removed in QGIS 4.0
Member QgsSymbol::layer () const
Will be removed in QGIS 4.0
Member QgsSymbol::setLayer (const QgsVectorLayer *layer)
Will be removed in QGIS 4.0
Member QgsSvgCache::statusChanged (const QString &statusQString)
Deprecated since QGIS 3.6 – no longer emitted.
Class QgsRendererRangeLabelFormat
since QGIS 3.10, use QgsClassificationMethod instead
Member QgsMarkerLineSymbolLayer::setRotateMarker (bool rotate)
Use setRotateSymbols() instead.
Member QgsMarkerLineSymbolLayer::rotateMarker () const
Use rotateSymbols() instead.
Member QgsScaleBarSettings::setFillColor2 (const QColor &color)
use setAlternateFillSymbol() instead.
Member QgsGraduatedSymbolRenderer::setLabelFormat (const QgsRendererRangeLabelFormat &labelFormat, bool updateRanges=false)
since QGIS 3.10 use classificationMethod() and QgsClassificationMethod::setLabelFormat instead
Member QgsGraduatedSymbolRenderer::labelFormat () const
since QGIS 3.10 use classificationMethod() and QgsClassificationMethod::setLabelFormat instead
Member QgsGraduatedSymbolRenderer::updateClasses (QgsVectorLayer *vlayer, Mode mode, int nclasses, bool useSymmetricMode=false, double symmetryPoint=0.0, bool astride=false)
since QGIS 3.10
Member QgsGraduatedSymbolRenderer::calcEqualIntervalBreaks (double minimum, double maximum, int classes, bool useSymmetricMode, double symmetryPoint, bool astride)
since QGIS 3.10 use QgsClassificationEqualInterval class instead
Member QgsGraduatedSymbolRenderer::makeBreaksSymmetric (QList< double > &breaks, double symmetryPoint, bool astride)
since QGIS 3.10, use QgsClassificationMethod::makeBreaksSymmetric instead
Member QgsGraduatedSymbolRenderer::setAstride (bool astride)
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::astride () const
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::setSymmetryPoint (double symmetryPoint)
since QGIS 3.10 use classficationMethod instead
Member QgsGraduatedSymbolRenderer::symmetryPoint () const
since QGIS 3.10 use classficationMethod instead
Member QgsLayoutTable::contentFont () const
use contextTextFormat() instead
Member QgsMeshDatasetSourceInterface::persistDatasetGroup (const QString &path, const QgsMeshDatasetGroupMetadata &meta, const QVector< QgsMeshDataBlock > &datasetValues, const QVector< QgsMeshDataBlock > &datasetActive, const QVector< double > &times)
QGIS 3.12.3
Member QgsMeshCalculator::expression_valid (const QString &formulaString, QgsMeshLayer *layer)
QGIS 3.12 - use expressionIsValid
Member QgsMeshCalculator::QgsMeshCalculator (const QString &formulaString, const QString &outputFile, const QgsGeometry &outputMask, double startTime, double endTime, QgsMeshLayer *layer)
QGIS 3.12
Member QgsMeshCalculator::QgsMeshCalculator (const QString &formulaString, const QString &outputFile, const QgsRectangle &outputExtent, double startTime, double endTime, QgsMeshLayer *layer)
QGIS 3.12
Member QgsLocator::prefixedFilters () const
since QGIS 3.2 use filters() instead
Member QgsLayoutTableColumn::clone ()
since QGIS 3.14 use a copy instead
Member QgsLayoutTableColumn::setSortByRank (int rank)
since QGIS 3.14 the order is now hold in a dedicated model
Member QgsLayoutTableColumn::sortByRank () const
since QGIS 3.14 the order is now hold in a dedicated model
Member QgsLayoutTable::contentFontColor () const
use contextTextFormat() instead
Member QgsLayoutTable::setContentFontColor (const QColor &color)
use setContentTextFormat() instead
Member QgsTriangularMesh::centroids () const
since QGIS 3.14 use faceCentroids() instead
Member QgsLayoutTable::setContentFont (const QFont &font)
use setContentTextFormat() instead
Member QgsLayoutTable::headerFontColor () const
use headerTextFormat() instead
Member QgsLayoutTable::setHeaderFontColor (const QColor &color)
use setHeaderTextFormat() instead
Member QgsLayoutTable::headerFont () const
use headerTextFormat() instead
Member QgsLayoutTable::setHeaderFont (const QFont &font)
use setHeaderTextFormat() instead
Member QgsLayoutReportContext::predefinedScales () const
Use QgsLayoutRenderContext::predefinedScales()
Member QgsLayoutReportContext::setPredefinedScales (const QVector< qreal > &scales)
Use QgsLayoutRenderContext::setPredefinedScales()
Member QgsLayoutRenderContext::currentExportLayer () const
Items should now handle this themselves, via QgsLayoutItem::exportLayerBehavior() and returning QgsLayoutItem::nextExportPart().
Member QgsLayoutRenderContext::setCurrentExportLayer (int layer=-1)
Items should now handle this themselves, via QgsLayoutItem::exportLayerBehavior() and returning QgsLayoutItem::nextExportPart().
Member QgsScaleBarRenderer::name () const
use id() instead
Member QgsScaleBarSettings::fillColor2 () const
use alternateFillSymbol() instead
Member QgsScaleBarSettings::setFillColor (const QColor &color)
use setFillSymbol() instead.
Member QgsScaleBarSettings::fillColor () const
use fillSymbol() instead.
Member QgsScaleBarSettings::setFontColor (const QColor &color)
use textFormat() instead
Member QgsScaleBarSettings::fontColor () const
use textFormat() instead
Member QgsScaleBarSettings::setFont (const QFont &font)
use setTextFormat() instead
Member QgsScaleBarSettings::font () const
use textFormat() instead
Member QgsScaleBarRenderer::segmentPositions (const QgsScaleBarRenderer::ScaleBarContext &scaleContext, const QgsScaleBarSettings &settings) const
use the version with a QgsRenderContext instead
Member QgsScaleBarRenderer::firstLabelXOffset (const QgsScaleBarSettings &settings) const
Use the version with QgsRenderContext instead.
Member QgsScaleBarRenderer::calculateBoxSize (const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext) const
Use the version with a QgsRenderContext instead.
Member QgsSymbolRenderContext::outputLineWidth (double width) const
Use the size conversion methods in QgsRenderContext instead.
Member QgsRasterResampler::resample (const QImage &srcImage, QImage &dstImage)=0
since QGIS 3.10.1, use the more efficient QgsRasterResamplerV2 interface instead.
Member QgsRasterProjector::setCrs (const QgsCoordinateReferenceSystem &srcCRS, const QgsCoordinateReferenceSystem &destCRS, int srcDatumTransform=-1, int destDatumTransform=-1)
since QGIS 3.8, use transformContext version instead
Member QgsRasterLayer::setDataProvider (const QString &provider)
Use the version with ProviderOptions instead.
Member QgsRasterFileWriterTask::errorOccurred (int error)
since QGIS 3.10. Use errorOccurred(int, const QString&)
Member QgsRasterFileWriterTask::QgsRasterFileWriterTask (const QgsRasterFileWriter &writer, QgsRasterPipe *pipe, int columns, int rows, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &crs)
since QGIS 3.8, use version with transformContext instead
Member QgsRasterFileWriter::writeRaster (const QgsRasterPipe *pipe, int nCols, int nRows, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &crs, QgsRasterBlockFeedback *feedback=nullptr)
since QGIS 3.8, use version with transformContext instead
Member QgsProcessingUtils::combineLayerExtents (const QList< QgsMapLayer * > &layers, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem())
Use version with QgsProcessingContext argument instead
Member QgsProcessingAlgorithm::helpString () const
Unused, will be removed in QGIS 4.0
Member QgsCodeEditor::marginVisible ()
Use base class methods for individual margins instead, or lineNumbersVisible()
Member QgsRelationWidgetWrapper::showSaveChildEditsButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsRelationWidgetWrapper::setShowSaveChildEditsButton (bool showChildEdits)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationWidgetWrapper::setShowUnlinkButton (bool showUnlinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationWidgetWrapper::showUnlinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsRelationWidgetWrapper::setShowLinkButton (bool showLinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationWidgetWrapper::showLinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsRelationReferenceWidget::foreignKeyChanged (const QVariant &)
since QGIS 3.10
Member QgsRelationReferenceWidget::foreignKey () const
since QGIS 3.10
Member QgsRelationReferenceWidget::setForeignKey (const QVariant &value)
since QGIS 3.10 use setForeignKeys
Member QgsRelationReferenceSearchWidgetWrapper::onValueChanged (const QVariant &value)
since QGIS 3.10 made private
Member QgsEditorWidgetWrapper::valueChanged (const QVariant &value)
since QGIS 3.10 use valuesChanged signal instead
Member QgsCodeEditor::setMarginVisible (bool margin)
Use base class methods for individual margins instead, or setLineNumbersVisible()
Member QgsFieldConditionalFormatWidget::reset () SIP_DEPRECATED
no longer used, will be removed in QGIS 4.0
Member QgsFieldConditionalFormatWidget::loadStyle (const QgsConditionalStyle &style) SIP_DEPRECATED
no longer used, use QgsEditConditionalFormatRuleWidget::loadStyle instead.
Member QgsFieldConditionalFormatWidget::viewRules () SIP_DEPRECATED
no longer used, will be removed in QGIS 4.0
Member QgsFeatureListModel::onEndInsertRows (const QModelIndex &parent, int first, int last)
use endInsertRows() instead
Member QgsFeatureListModel::onBeginInsertRows (const QModelIndex &parent, int first, int last)
use beginInsertRows() instead
Member QgsFeatureListModel::onEndRemoveRows (const QModelIndex &parent, int first, int last)
Use endRemoveRows() instead
Member QgsFeatureListModel::onBeginRemoveRows (const QModelIndex &parent, int first, int last)
Use beginRemoveRows() instead
Member QgsDualView::setFilteredFeatures (const QgsFeatureIds &filteredFeatures)
since filterFeatures is handled in the attribute filter model itself
Member QgsStyleManagerDialog::populateTypes () SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Class QgsMapServiceException
Use QsgServerException
Member QgsGeometryCheck::resolutionMethods () const
since QGIS 3.12, use availableResolutionMethods() instead
Member QgsRasterCalculator::QgsRasterCalculator (const QString &formulaString, const QString &outputFile, const QString &outputFormat, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &outputCrs, int nOutputColumns, int nOutputRows, const QVector< QgsRasterCalculatorEntry > &rasterEntries)
since QGIS 3.8, use the version with transformContext instead
Member QgsRasterCalculator::QgsRasterCalculator (const QString &formulaString, const QString &outputFile, const QString &outputFormat, const QgsRectangle &outputExtent, int nOutputColumns, int nOutputRows, const QVector< QgsRasterCalculatorEntry > &rasterEntries)
since QGIS 3.8, use the version with transformContext instead
Member QgsSvgMarkerSymbolLayerWidget::populateList ()
since QGIS 3.16
Member QgsStyleManagerDialog::removeColorRamp () SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Member QgsStyleManagerDialog::removeSymbol () SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Member QgsStyleManagerDialog::populateColorRamps (const QStringList &colorRamps, bool checkable=false) SIP_DEPRECATED
No longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
Member QgsStyleManagerDialog::populateSymbols (const QStringList &symbolNames, bool checkable=false) SIP_DEPRECATED
No longer required in QGIS 3.6, as the model is updated live. Has no effect and will be removed in QGIS 4.0
Member QgsStyleManagerDialog::setSymbolsChecked (const QStringList &) SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Member QgsAttributeTableFilterModel::extentsChanged ()
since QGIS 3.10.3 - made private as reloadVisible()
Member QgsStyleManagerDialog::regrouped (QStandardItem *) SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Member QgsStyleManagerDialog::itemChanged (QStandardItem *item) SIP_DEPRECATED
since QGIS 3.6 - has no effect and will be removed in QGIS 4.0
Member QgsVectorLayerSaveAsDialog::crs () const
since QGIS 3.14 - will be removed in QGIS 4.0. Use crsObject() instead.
Member QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog (long srsid, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags())
since QGIS 3.14 - will be removed in QGIS 4.0
Member QgsNewOgrConnection::showHelp () SIP_DEPRECATED
will be made private with QGIS 4
Member QgsLayoutCustomDropHandler::handleFileDrop (QgsLayoutDesignerInterface *iface, const QString &file)
use the version which specifies a drop location instead.
Member QgsLayerTreeViewDefaultActions::makeTopLevel ()
since QGIS 3.2, use moveOutOfGroup()
Member QgsLayerTreeViewDefaultActions::actionMakeTopLevel (QObject *parent=nullptr)
since QGIS 3.2, use actionMoveOutOfGroup()
Member QgsEditorWidgetWrapper::setValue (const QVariant &value)
since QGIS 3.10
Member QgsBrowserDockWidget::addLayerAtIndex (const QModelIndex &index)
will be removed in QGIS 4.0 - retrieve the QgsLayerItem itself and manually add to project.
Member QgsExpressionBuilderWidget::loadRecent (const QString &collection=QStringLiteral("generic"))
since QGIS 3.14 use expressionTree()->loadRecent() instead
Member QgsExpressionBuilderWidget::saveToRecent (const QString &collection="generic")
since QGIS 3.14 use expressionTree()->saveRecent() instead
Member QgsExpressionBuilderWidget::loadFieldsAndValues (const QMap< QString, QStringList > &fieldValues)
since QGIS 3.14 this will not do anything, use setLayer() instead
Member QgsExpressionBuilderWidget::loadFieldNames (const QgsFields &fields)
since QGIS 3.14 use expressionTree()->loadFieldNames() instead
Member QgsExpressionBuilderWidget::loadFieldNames ()
since QGIS 3.14 this is now done automatically
Member QgsCustomDropHandler::handleMimeData (const QMimeData *data)
since QGIS 3.10 - use handleMimeDataV2() instead.
Member QgsBrowserDockWidget::toggleFastScan ()
will be removed in QGIS 4.0
Member QgsBrowserDockWidget::removeFavorite ()
will be removed in QGIS 4.0 - use the methods in QgsBrowserModel instead
Member QgsBrowserDockWidget::addFavoriteDirectory ()
will be removed in QGIS 4.0 - use the methods in QgsBrowserModel instead
Member QgsBrowserDockWidget::addFavorite ()
will be removed in QGIS 4.0 - use the methods in QgsBrowserModel instead
Member QgsExpressionBuilderWidget::loadUserExpressions ()
since QGIS 3.14 use expressionTree()->loadUserExpressions() instead
Member QgsBrowserDockWidget::addFavoriteDirectory (const QString &favDir, const QString &name=QString())
will be removed in QGIS 4.0 - use the methods in QgsBrowserModel instead
Member QgsAttributeFormEditorWidget::valueChanged (const QVariant &value)
since QGIS 3.10 use valuesChanged instead
Member QgsAttributeForm::attributeChanged (const QString &attribute, const QVariant &value)
since 3.0
Member QgsAttributeForm::Mode
Use QgsAttributeEditorContext::Mode instead.
Member QgsAbstractDataSourceWidget::progress (int, int)
Since QGIS 3.4 this signal is no longer used. Use QgsProxyProgressTask instead to show progress reports.
Member QgisInterface::openURL (const QString &url, bool useQgisDocDirectory=true)=0
Use QDesktopServices instead
Member QgsTextRenderer::drawPart (QPointF origin, double rotation, HAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, TextPart part, bool drawAsOutlines=true)
Private API only, will be removed in 4.0
Member QgsTextRenderer::drawPart (const QRectF &rect, double rotation, HAlignment alignment, const QStringList &textLines, QgsRenderContext &context, const QgsTextFormat &format, TextPart part, bool drawAsOutlines=true)
Private API only, will be removed in 4.0
Member QgsSymbolRenderContext::outputPixelSize (double size) const
Use the size conversion methods in QgsRenderContext instead.
Member QgsMapToolCapture::points () const
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant returns QgsPoint objects instead of QgsPointXY.
Class QgsSearchQueryBuilder
Will be removed in QGIS 4
Member QgsRelationEditorWidget::showSaveChildEditsButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsRelationEditorWidget::setShowSaveChildEditsButton (bool showChildEdits)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationEditorWidget::setShowUnlinkButton (bool showUnlinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationEditorWidget::showUnlinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsRelationEditorWidget::setShowLinkButton (bool showLinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsRelationEditorWidget::showLinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsNewVectorLayerDialog::runAndCreateLayer (QWidget *parent=nullptr, QString *enc=nullptr, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), const QString &initialPath=QString())
since QGIS 3.4.5 - use execAndCreateLayer() instead.
Member QgsMapToolEdit::addTopologicalPoints (const QVector< QgsPointXY > &vertices)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsMapToolCapture::setPoints (const QVector< QgsPointXY > &pointList)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsLayoutPageCollection::pageStyleSymbol () const
Use QgsLayoutItemPage::pageStyleSymbol() instead.
Member QgsFeatureListComboBox::setIdentifierField (const QString &identifierField)
since QGIS 3.10
Member QgsFeatureListComboBox::identifierField () const
since QGIS 3.10
Member QgsFeatureListComboBox::setIdentifierValue (const QVariant &identifierValue)
since QGIS 3.10 use setIdentifierValues
Member QgsFeatureListComboBox::identifierValue () const
since QGIS 3.10
Member QgsExpressionTreeView::model ()
since QGIS 3.14
Member QgsExpressionBuilderWidget::findExpressions (const QString &label)
since QGIS 3.14 use expressionTree()->findExpressions instead
Member QgsExpressionBuilderWidget::model ()
since QGIS 3.14
Member QgsExpressionBuilderWidget::removeFromUserExpressions (const QString &label)
since QGIS 3.14 use expressionTree()->removeFromUserExpressions() instead
Member QgsExpressionBuilderWidget::saveToUserExpressions (const QString &label, const QString expression, const QString &helpText)
since QGIS 3.14 use expressionTree()->saveToUserExpressions() instead
Member QgsLegendSettings::setMapUnitsPerPixel (double mapUnitsPerPixel)
set these properties on render contexts instead
Member QgsNetworkAccessManager::requestAboutToBeCreated (QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice *)
Use the thread-safe requestAboutToBeCreated( QgsNetworkRequestParameters ) signal instead.
Member QgsMapToPixel::toMapPoint (double x, double y) const
since QGIS 3.4 use toMapCoordinates instead
Member QgsMapSettings::setCustomRenderFlags (const QString &customRenderFlags)
use
Member QgsMapSettings::customRenderFlags () const
use
Member QgsMapRendererJob::drawLabeling (const QgsMapSettings &settings, QgsRenderContext &renderContext, QgsLabelingEngine *labelingEngine2, QPainter *painter)
Will be removed in QGIS 4.0
Member QgsMapLayerProxyModel::layerWhitelist ()
use layerAllowlist() instead
Member QgsMapLayerProxyModel::setLayerWhitelist (const QList< QgsMapLayer * > &layers)
use setLayerAllowList()
Member QgsMapLayer::hasDependencyCycle (const QSet< QgsMapLayerDependency > &) const
since QGIS 3.10
Member QgsLegendSettings::setDpi (int dpi)
Set dpi on render contexts instead.
Member QgsLegendSettings::dpi () const
Take dpi from render contexts instead.
Member QgsNetworkAccessManager::requestCreated (QNetworkReply *)
Use the thread-safe requestAboutToBeCreated( QgsNetworkRequestParameters ) signal instead.
Member QgsLegendSettings::mapUnitsPerPixel () const
take these properties on render contexts instead
Member QgsLegendSettings::setMapScale (double scale)
set this property on the render context instead
Member QgsLegendSettings::mapScale () const
take this property from the render context instead
Member QgsLegendSettings::setUseAdvancedEffects (bool use)
Set flag on render contexts instead.
Member QgsLegendSettings::useAdvancedEffects () const
Use flags from render contexts instead.
Member QgsLegendSettings::setMmPerMapUnit (double mmPerMapUnit)
Set scale factor on render contexts instead.
Member QgsLegendSettings::mmPerMapUnit () const
Use scale factor from render contexts instead.
Member QgsLegendRenderer::drawLegend (QPainter *painter)
Use the variant which accepts a QgsRenderContext instead.
Member QgsFeatureRequest::setConnectionTimeout (int connectionTimeout)
Use setTimeout() instead.
Member QgsProject::setUseProjectScales (bool enabled)
Use viewSettings() instead
Member QgsProviderRegistry::library (const QString &providerKey) const
QGIS 3.10 - providers may not need to be loaded from a library (empty string returned)
Member QgsProviderMetadata::createFunction () const
QGIS 3.10
Member QgsProviderMetadata::library () const
QGIS 3.10 - providers may not need to be loaded from a library (empty string returned)
Member QgsProviderMetadata::QgsProviderMetadata (const QString &key, const QString &description, const QgsProviderMetadata::CreateDataProviderFunction &createFunc)
QGIS 3.10
Member QgsProjectStorage::showSaveGui ()
since QGIS 3.10 - use QgsProjectStorageGuiProvider for GUI-related project storage functionality
Member QgsProjectStorage::showLoadGui ()
since QGIS 3.10 - use QgsProjectStorageGuiProvider for GUI-related project storage functionality
Member QgsProjectStorage::visibleName ()
since QGIS 3.10 - use QgsProjectStorageGuiProvider for GUI-related project storage functionality
Member QgsProject::mapScalesChanged ()
Use viewSettings() instead
Member QgsProject::nonIdentifiableLayersChanged (QStringList nonIdentifiableLayers)
since QGIS 3.4
Member QgsProject::useProjectScales () const
Use viewSettings() instead
Member QgsFeatureRequest::connectionTimeout () const
Use timeout() instead.
Member QgsProject::mapScales () const
Use viewSettings() instead
Member QgsProject::setMapScales (const QVector< double > &scales)
Use viewSettings() instead
Member QgsProject::setRequiredLayers (const QSet< QgsMapLayer * > &layers)
since QGIS 3.4 use QgsMapLayer::setFlags() instead
Member QgsProject::requiredLayers () const
since QGIS 3.4 use QgsMapLayer::flags() instead
Member QgsProject::nonIdentifiableLayers () const
since QGIS 3.4 use QgsMapLayer::setFlags() instead
Member QgsProject::setNonIdentifiableLayers (const QStringList &layerIds)
since QGIS 3.4 use QgsMapLayer::setFlags() instead
Member QgsProject::setNonIdentifiableLayers (const QList< QgsMapLayer * > &layers)
since QGIS 3.4 use QgsMapLayer::setFlags() instead
Member QgsProject::fileInfo () const
since QGIS 3.2 use absoluteFilePath(), baseName() or lastModifiedTime() instead
Member QgsOpenClUtils::buildProgram (const cl::Context &context, const QString &source, ExceptionBehavior exceptionBehavior=Catch)
since QGIS 3.6
Member QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem (long id, CrsType type=PostgisCrsId)
QGIS 3.10 We encourage you to use EPSG codes or WKT to describe CRSes in your code wherever possible. Internal QGIS CRS IDs are not guaranteed to be permanent / involatile, and Proj strings are a lossy format.
Member QgsCoordinateTransform::setSourceDatumTransformId (int datumId)
Unused on builds based on Proj 6.0 or later
Member QgsCoordinateTransform::sourceDatumTransformId () const
Unused on builds based on Proj 6.0 or later
Member QgsCoordinateReferenceSystem::recentProjections ()
QGIS 3.10 Use recentCoordinateReferenceSystems() instead.
Member QgsCoordinateReferenceSystem::toProj4 () const
QGIS 3.10 Use toProj() instead.
Member QgsCoordinateReferenceSystem::findMatchingProj ()
QGIS 3.10 Not used in Proj >= 6 based builds
Member QgsCoordinateReferenceSystem::setupESRIWktFix ()
QGIS 3.10 Not used on builds based on Proj version 6 or later
Member QgsCoordinateReferenceSystem::createFromProj4 (const QString &projString)
QGIS 3.10 Use createFromProj() instead
Member QgsCoordinateReferenceSystem::createFromSrid (long srid)
QGIS 3.10 Use alternative methods for SRS construction instead – this method was specifically created for use by the postgres provider alone, and using it elsewhere will lead to subtle bugs.
Member QgsCoordinateReferenceSystem::createFromId (long id, CrsType type=PostgisCrsId)
QGIS 3.10 We encourage you to use EPSG code or WKT to describe CRSes in your code wherever possible. Internal QGIS CRS IDs are not guaranteed to be permanent / involatile, and Proj strings are a lossy format.
Member QgsCoordinateReferenceSystem::fromProj4 (const QString &proj4)
QGIS 3.10 Use fromProj() instead.
Member QgsCoordinateTransform::destinationDatumTransformId () const
Unused on builds based on Proj 6.0 or later
Member QgsCadUtils::AlignMapPointOutput::edgeMatch
will be removed in QGIS 4.0 - use snapMatch instead
Member QgsBrowserModel::connectItem (QgsDataItem *item)
Deprecated since QGIS 3.4 – this method has no effect, and is dangerous to call in earlier QGIS versions. Any usage should be removed (and will have no harmful side-effects!).
Member QgsAttributeEditorRelation::showSaveChildEditsButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsAttributeEditorRelation::setShowSaveChildEditsButton (bool showChildEdits)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsAttributeEditorRelation::setShowUnlinkButton (bool showUnlinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsAttributeEditorRelation::showUnlinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsAttributeEditorRelation::setShowLinkButton (bool showLinkButton)
since QGIS 3.16 use setVisibleButtons() instead
Member QgsAttributeEditorRelation::showLinkButton () const
since QGIS 3.16 use visibleButtons() instead
Member QgsAttributeEditorRelation::QgsAttributeEditorRelation (const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent)
since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
Member QgsDataItem::rename (const QString &name)
QGIS 3.10
Member QgsFeaturePickerModelBase::IdentifierValueRole
Use IdentifierValuesRole instead
Member QgsFeatureFilterModel::identifierField () const
since QGIS 3.10 use identifierFields instead
Member QgsDatumTransform::datumTransformInfo (int datumTransformId)
Not used for builds based on Proj >= 6.0
Member QgsDatumTransform::projStringToDatumTransformId (const QString &string)
Not used for builds based on Proj >= 6.0
Member QgsDatumTransform::datumTransformToProj (int datumTransformId)
Not used for builds based on Proj >= 6.0
Member QgsDatumTransform::datumTransformations (const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination)
Not used for builds based on Proj >= 6.0
Class QgsDatumTransform::TransformInfo
Not used on builds based on Proj >= 6.0
Class QgsDatumTransform::TransformPair
Not used for builds based on Proj >= 6.0
Member QgsLayerItem::deleteLayer ()
QGIS 3.10
Member QgsDataItem::SetCrs
since QGIS 3.6 – no longer used by QGIS and will be removed in QGIS 4.0
Member QgsProviderRegistry::providerCapabilities (const QString &providerKey) const
QGIS 3.10 (use instead capabilities() method of individual data item provider)
Member QgsDataItem::setCrs (const QgsCoordinateReferenceSystem &crs)
since QGIS 3.6. This method is no longer used by QGIS and will be removed in QGIS 4.0.
Member QgsDataItem::handleDrop (const QMimeData *, Qt::DropAction)
QGIS 3.10
Member QgsDataItem::acceptDrop ()
QGIS 3.10
Member QgsDataItem::paramWidget ()
QGIS 3.10
Member QgsCoordinateTransformContext::calculateDatumTransforms (const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination) const
Has no effect on builds based on Proj 6.0 or later. Use calculateCoordinateOperation() instead.
Member QgsCoordinateTransformContext::removeSourceDestinationDatumTransform (const QgsCoordinateReferenceSystem &sourceCrs, const QgsCoordinateReferenceSystem &destinationCrs)
Use removeCoordinateOperation() instead
Member QgsCoordinateTransformContext::addSourceDestinationDatumTransform (const QgsCoordinateReferenceSystem &sourceCrs, const QgsCoordinateReferenceSystem &destinationCrs, int sourceTransformId, int destinationTransformId)
Has no effect on builds based on Proj 6.0 or later, use addCoordinateOperation() instead.
Member QgsCoordinateTransformContext::sourceDestinationDatumTransforms () const
Has no effect on builds based on Proj 6.0 or later, use coordinateOperations() instead.
Member QgsCoordinateTransform::setDestinationDatumTransformId (int datumId)
Unused on builds based on Proj 6.0 or later
Member QgsLabelSearchTree::clear ()
has no effect since QGIS 3.12
Member QgsLayoutItemMapGrid::annotationFont () const
use annotationTextFormat() instead
Member QgsLayoutItemMapGrid::setAnnotationFont (const QFont &font)
use setAnnotationTextFormat() instead
Member QgsLayoutItem::numberExportLayers () const
Use nextExportPart() and exportLayerBehavior() instead.
Member QgsLayerTreeRegistryBridge::setLayerInsertionPoint (QgsLayerTreeGroup *parentGroup, int index)
since QGIS 3.10 use setLayerInsertionPoint( const InsertionPoint &insertionPoint ) instead
Member QgsLayerTreeModelLegendNode::ItemContext::labelXOffset
use columnLeft, columnRight instead.
Member QgsLayerTreeModelLegendNode::ItemContext::point
Use top, columnLeft, columnRight instead.
Member QgsPalLayerSettings::previewBkgrdColor
since QGIS 3.10. Use QgsTextFormat::previewBackgroundColor() instead.
Member QgsRuleBasedLabelSinkProvider::reinit (QgsVectorLayer *layer)
since QGIS 3.12
Member QgsLayoutItemMapGrid::setAnnotationFontColor (const QColor &color)
use setAnnotationTextFormat() instead
Member QgsLabelingEngineSettings::searchMethod () const
since QGIS 3.10 - Chain is always used.
Member QgsLabelingEngineSettings::setSearchMethod (Search s)
since QGIS 3.10 - Chain is always used.
Member QgsLabelingEngineSettings::setNumCandidatePositions (int candPoint, int candLine, int candPolygon)
since QGIS 3.12 use setMaximumPolygonCandidatesPerCmSquared() and setMaximumLineCandidatesPerCm() instead.
Member QgsLabelingEngineSettings::numCandidatePositions (int &candPoint, int &candLine, int &candPolygon) const
since QGIS 3.12 use maximumPolygonCandidatesPerCmSquared() and maximumLineCandidatesPerCm() instead.
Member QgsGeometry::createPolygonFromQPolygonF (const QPolygonF &polygon)
use QgsGeometry::fromQPolygonF() or QgsLineString::fromQPolygonF() instead.
Member QgsGeometry::createPolylineFromQPolygonF (const QPolygonF &polygon)
use QgsGeometry::fromQPolygonF() or QgsLineString::fromQPolygonF() instead.
Member QgsGeometry::splitGeometry (const QVector< QgsPointXY > &splitLine, QVector< QgsGeometry > &newGeometries, bool topological, QVector< QgsPointXY > &topologyTestPoints, bool splitFeature=true)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsDxfExport::registerDxfLayer (const QString &layerId, QgsFeatureId fid, const QString &layer)
Will be made private in QGIS 4
Member QgsAnnotation::frameSize () const
use frameSizeMm() instead
Member QgsLayoutItemScaleBar::lineColor () const
use lineSymbol() instead
Member QgsLayoutItemScaleBar::setLineCapStyle (Qt::PenCapStyle style)
use setLineSymbol() instead
Member QgsLayoutItemScaleBar::lineCapStyle () const
use lineSymbol() instead
Member QgsLayoutItemScaleBar::setLineJoinStyle (Qt::PenJoinStyle style)
use setLineSymbol() instead
Member QgsLayoutItemScaleBar::lineJoinStyle () const
use lineSymbol() instead
Member QgsLayoutItemScaleBar::brush2 () const
use alternateFillSymbol() instead
Member QgsLayoutItemScaleBar::brush () const
use fillSymbol() instead
Member QgsLayoutItemScaleBar::pen () const
use lineSymbol() instead
Member QgsLayoutItemScaleBar::setLineWidth (double width)
use setLineSymbol() instead
Member QgsLayoutItemScaleBar::lineWidth () const
use lineSymbol() instead
Member QgsLayoutItemScaleBar::setLineColor (const QColor &color)
use setLineSymbol() instead
Member QgsAnnotation::setFrameSize (QSizeF size)
use setFrameSizeMm() instead
Member QgsLayoutItemScaleBar::setFillColor2 (const QColor &color)
use setAlternateFillSymbol() instead
Member QgsLayoutItemScaleBar::fillColor2 () const
use alternateFillSymbol() instead
Member QgsLayoutItemScaleBar::setFillColor (const QColor &color)
use setFillSymbol() instead
Member QgsLayoutItemScaleBar::fillColor () const
use fillSymbol() instead
Member QgsLayoutItemScaleBar::setFontColor (const QColor &color)
use setTextFormat() instead
Member QgsLayoutItemScaleBar::fontColor () const
use textFormat() instead
Member QgsLayoutItemScaleBar::setFont (const QFont &font)
use setTextFormat() instead
Member QgsLayoutItemScaleBar::font () const
use textFormat() instead
Member QgsLayoutItemMapGrid::annotationFontColor () const
use annotationTextFormat() instead
Member QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings (bool enabled, SnappingType type, double tolerance, QgsTolerance::UnitType units)
since QGIS 3.12 use the method with SnappingTypeFlag instead.
Member QgsVectorFileWriter::QgsVectorFileWriter (const QString &vectorFileName, const QString &fileEncoding, const QgsFields &fields, QgsWkbTypes::Type geometryType, const QgsCoordinateReferenceSystem &srs, const QString &driverName, const QStringList &datasourceOptions, const QStringList &layerOptions, QString *newFilename, QgsVectorFileWriter::SymbologyExport symbologyExport, QgsVectorFileWriter::FieldValueConverter *fieldValueConverter, const QString &layerName, QgsVectorFileWriter::ActionOnExistingFile action, QString *newLayer=nullptr, QgsCoordinateTransformContext transformContext=QgsCoordinateTransformContext(), QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags())
Use create() instead.
Member QgsVectorFileWriter::QgsVectorFileWriter (const QString &vectorFileName, const QString &fileEncoding, const QgsFields &fields, QgsWkbTypes::Type geometryType, const QgsCoordinateReferenceSystem &srs=QgsCoordinateReferenceSystem(), const QString &driverName="GPKG", const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), QString *newFilename=nullptr, QgsVectorFileWriter::SymbologyExport symbologyExport=QgsVectorFileWriter::NoSymbology, QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), QString *newLayer=nullptr, QgsCoordinateTransformContext transformContext=QgsCoordinateTransformContext())
Use create() instead.
Member QgsVectorFileWriter::writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QgsVectorFileWriter::SaveVectorOptions &options, QString *newFilename=nullptr, QString *errorMessage=nullptr, QString *newLayer=nullptr)
Use writeAsVectorFormatV2() instead.
Member QgsVectorFileWriter::writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QString &fileEncoding, const QgsCoordinateTransform &ct, const QString &driverName="GPKG", bool onlySelected=false, QString *errorMessage=nullptr, const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), bool skipAttributeCreation=false, QString *newFilename=nullptr, QgsVectorFileWriter::SymbologyExport symbologyExport=QgsVectorFileWriter::NoSymbology, double symbologyScale=1.0, const QgsRectangle *filterExtent=nullptr, QgsWkbTypes::Type overrideGeometryType=QgsWkbTypes::Unknown, bool forceMulti=false, bool includeZ=false, const QgsAttributeList &attributes=QgsAttributeList(), QgsVectorFileWriter::FieldValueConverter *fieldValueConverter=nullptr, QString *newLayer=nullptr)
Use writeAsVectorFormatV2() instead.
Member QgsVectorFileWriter::writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QString &fileEncoding, const QgsCoordinateReferenceSystem &destCRS=QgsCoordinateReferenceSystem(), const QString &driverName="GPKG", bool onlySelected=false, QString *errorMessage=nullptr, const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), bool skipAttributeCreation=false, QString *newFilename=nullptr, QgsVectorFileWriter::SymbologyExport symbologyExport=QgsVectorFileWriter::NoSymbology, double symbologyScale=1.0, const QgsRectangle *filterExtent=nullptr, QgsWkbTypes::Type overrideGeometryType=QgsWkbTypes::Unknown, bool forceMulti=false, bool includeZ=false, const QgsAttributeList &attributes=QgsAttributeList(), QgsVectorFileWriter::FieldValueConverter *fieldValueConverter=nullptr, QString *newLayer=nullptr)
Use writeAsVectorFormatV2() instead.
Member QgsVectorDataProvider::forceReload ()
QGIS 3.12 - will be removed in QGIS 4.0 - use reloadData instead
Member QgsSpatialIndex::insertFeature (QgsFeatureId id, const QgsRectangle &bounds)
Use addFeature() instead
Member QgsSpatialIndex::insertFeature (const QgsFeature &feature)
Use addFeature() instead
Member QgsSnappingConfig::IndividualLayerSettings::setType (QgsSnappingConfig::SnappingType type)
since QGIS 3.12 use setTypeFlag instead.
Member QgsSnappingConfig::IndividualLayerSettings::type () const
since QGIS 3.12 use typeFlag instead.
Member QgsSnappingConfig::setType (QgsSnappingConfig::SnappingType type)
since QGIS 3.12 use setTypeFlag instead.
Member QgsSnappingConfig::type () const
since QGIS 3.12 use typeFlag instead.
Member QgsSnappingConfig::SnappingType
since QGIS 3.12 use SnappingTypeFlag instead.
Member QgsRuntimeProfiler::endGroup ()
use end() instead
Member QgsRuntimeProfiler::beginGroup (const QString &name)
use start() instead
Member QgsProviderRegistry::registerGuis (QWidget *widget)
since QGIS 3.10 - does nothing - use QgsGui::providerGuiRegistry()
Member QgsProviderRegistry::createProviderLibrary (const QString &providerKey) const
QGIS 3.10 - providers may not need to be loaded from a library
Member QgsProviderRegistry::function (const QString &providerKey, const QString &functionName)
QGIS 3.10 - any provider functionality should be accessed through QgsProviderMetadata
Member QgsProviderRegistry::createSelectionWidget (const QString &providerKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::None)
QGIS 3.10 - use QgsGui::sourceSelectProviderRegistry()->createDataSourceWidget() instead
Member QgsVectorLayer::excludeAttributesWfs () const
since QGIS 3.16, use fields().configurationFlags() instead
Member QgsAnnotation::frameOffsetFromReferencePoint () const
use frameOffsetFromReferencePointMm() instead
Member QgsAnnotation::setFrameOffsetFromReferencePoint (QPointF offset)
use setFrameOffsetFromReferencePointMm() instead
Member QgsVectorLayerJoinInfo::joinFieldNamesBlackList () const
use joinFieldNamesBlockList() instead
Member QgsVectorLayerJoinInfo::setJoinFieldNamesBlackList (const QStringList &blackList)
use setJoinFieldNamesBlockList() instead
Member QgsVectorLayerEditUtils::splitFeatures (const QVector< QgsPointXY > &splitLine, bool topologicalEditing=false)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayerEditUtils::splitParts (const QVector< QgsPointXY > &splitLine, bool topologicalEditing=false)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayerEditUtils::addPart (const QVector< QgsPointXY > &ring, QgsFeatureId featureId)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayerEditUtils::addRing (const QVector< QgsPointXY > &ring, const QgsFeatureIds &targetFeatureIds=QgsFeatureIds(), QgsFeatureId *modifiedFeatureId=nullptr)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::drawVertexMarker (double x, double y, QPainter &p, QgsVectorLayer::VertexMarkerType type, int vertexSize)
Use the equivalent QgsSymbolLayerUtils::drawVertexMarker function instead
Member QgsVectorLayer::setExcludeAttributesWfs (const QSet< QString > &att)
since QGIS 3.16, use setFieldConfigurationFlag instead
Member QgsAttributeEditorRelation::QgsAttributeEditorRelation (const QString &name, const QString &relationId, QgsAttributeEditorElement *parent)
since QGIS 3.0.2. The name parameter is not used for anything and overwritten by the relationId internally.
Member QgsVectorLayer::setExcludeAttributesWms (const QSet< QString > &att)
since QGIS 3.16, use setFieldConfigurationFlag instead
Member QgsVectorLayer::excludeAttributesWms () const
since QGIS 3.16, use fields().configurationFlags() instead
Member QgsVectorLayer::addTopologicalPoints (const QgsPointXY &p)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::splitFeatures (const QVector< QgsPointXY > &splitLine, bool topologicalEditing=false)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::splitParts (const QVector< QgsPointXY > &splitLine, bool topologicalEditing=false)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::addPart (const QVector< QgsPointXY > &ring)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::addPart (const QList< QgsPointXY > &ring)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::addRing (const QVector< QgsPointXY > &ring, QgsFeatureId *featureId=nullptr)
since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
Member QgsVectorLayer::setDataSource (const QString &dataSource, const QString &baseName, const QString &provider, bool loadDefaultStyleFlag=false)
Use version with ProviderOptions argument instead