QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Deprecated List
Member offsetLine (QPolygonF polyline, double dist)
since 2.4 - calculate line shifted by a specified distance
Member QGis::DEFAULT_IDENTIFY_RADIUS
since 2.3, use DEFAULT_SEARCH_RADIUS_MM
Member QgisInterface::actionLayerSelectionSaveAs ()=0
in 2.4 - returns null pointer
Member QgisInterface::openURL (QString url, bool useQgisDocDirectory=true)=0
Member QgsAtlasComposition::composerMap () const
Use QgsComposerMap::atlasDriven() instead
Member QgsAtlasComposition::fixedScale () const
since 2.4 Use QgsComposerMap::atlasScalingMode() instead
Member QgsAtlasComposition::margin () const
Use QgsComposerMap::atlasMargin() instead
Member QgsAtlasComposition::setComposerMap (QgsComposerMap *map)
Use QgsComposerMap::setAtlasDriven( true ) instead
Member QgsAtlasComposition::setFixedScale (bool fixed)
since 2.4 Use QgsComposerMap::setAtlasScalingMode() instead
Member QgsAtlasComposition::setMargin (float margin)
Use QgsComposerMap::setAtlasMargin( double ) instead
Member QgsAttributeAction::setPythonExecute (void(*)(const QString &))
Initialize QgsPythonRunner instead
Member QgsAttributeDialog::dialog ()
Do not use. Just use this object itself. Or QgsAttributeForm if you want to embed.
Member QgsAttributeDialog::QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, QgsDistanceArea myDa, QWidget *parent=0, bool showDialogButtons=true)
Class QgsAttributeEditor
Member QgsAttributeEditor::createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QMap< int, QWidget * > &proxyWidgets)
Member QgsAttributeForm::accept ()
Member QgsAttributeForm::reject ()
Member QgsCachedFeatureIterator::QgsCachedFeatureIterator (QgsVectorLayerCache *vlCache, QgsFeatureRequest featureRequest, QgsFeatureIds featureIds)
Use QgsCachedFeatureIterator( QgsVectorLayerCache* vlCache, QgsFeatureRequest featureRequest ) instead
Member QgsComposerArrow::arrowColor () const
use arrowHeadOutlineColor, arrowHeadFillColor or lineStyle instead
Member QgsComposerArrow::outlineWidth () const
use arrowHeadOutlineWidth or lineSymbol instead
Member QgsComposerArrow::setArrowColor (const QColor &c)
use setArrowHeadOutlineColor, setArrowHeadFillColor or setLineStyle instead
Member QgsComposerArrow::setOutlineWidth (double width)
use setArrowHeadOutlineWidth or setLineSymbol instead
Member QgsComposerAttributeTable::displayAttributes () const
use QgsComposerTable::columns() instead
Member QgsComposerAttributeTable::fieldAliasMap () const
use QgsComposerTable::columns() instead
Member QgsComposerAttributeTable::setFieldAliasMap (const QMap< int, QString > &map)
use QgsComposerTable::columns() instead
Member QgsComposerAttributeTable::setSortAttributes (const QList< QPair< int, bool > > att)
use QgsComposerTable::columns() instead
Note
not available in python bindings
Member QgsComposerItem::angle (const QPointF &p1, const QPointF &p2) const
use QgsComposerUtils::angle instead
Member QgsComposerItem::cornerPointOnRotatedAndScaledRect (double &x, double &y, double width, double height, double rotation) const
will be removed in QGIS 3.0
Member QgsComposerItem::cornerPointOnRotatedAndScaledRect (double &x, double &y, double width, double height) const
will be removed in QGIS 3.0
Member QgsComposerItem::drawArrowHead (QPainter *p, double x, double y, double angle, double arrowHeadWidth) const
use QgsComposerUtils::drawArrowHead instead
Member QgsComposerItem::drawText (QPainter *p, double x, double y, const QString &text, const QFont &font, const QColor &c=QColor()) const
use QgsComposerUtils::drawText instead
Member QgsComposerItem::drawText (QPainter *p, const QRectF &rect, const QString &text, const QFont &font, Qt::AlignmentFlag halignment=Qt::AlignLeft, Qt::AlignmentFlag valignment=Qt::AlignTop, int flags=Qt::TextWordWrap) const
use QgsComposerUtils::drawText instead
Member QgsComposerItem::fontAscentMillimeters (const QFont &font) const
use QgsComposerUtils::fontAscentMM instead
Member QgsComposerItem::fontDescentMillimeters (const QFont &font) const
use QgsComposerUtils::fontDescentMM instead
Member QgsComposerItem::fontHeightCharacterMM (const QFont &font, const QChar &c) const
use QgsComposerUtils::fontHeightCharacterMM instead
Member QgsComposerItem::fontHeightMillimeters (const QFont &font) const
use QgsComposerUtils::fontHeightMM instead
Member QgsComposerItem::imageSizeConsideringRotation (double &width, double &height, double rotation) const
will be removed in QGIS 3.0
Member QgsComposerItem::imageSizeConsideringRotation (double &width, double &height) const
will be removed in QGIS 3.0
Member QgsComposerItem::largestRotatedRectWithinBounds (QRectF originalRect, QRectF boundsRect, double rotation) const
use QgsComposerUtils::largestRotatedRectWithinBounds instead
Member QgsComposerItem::lockSymbolSize () const
will be removed in QGIS 3.0
Member QgsComposerItem::pixelFontSize (double pointSize) const
use QgsComposerUtils::mmFontSize instead
Member QgsComposerItem::rotate (double angle, double &x, double &y) const
use QgsComposerUtils:rotate instead
Member QgsComposerItem::rotation () const
Use itemRotation() instead
Member QgsComposerItem::scaledFontPixelSize (const QFont &font) const
use QgsComposerUtils::scaledFontPixelSize instead
Member QgsComposerItem::setRotation (double r)
Use setItemRotation( double rotation ) instead
Member QgsComposerItem::sizeChangedByRotation (double &width, double &height, double rotation)
will be removed in QGIS 3.0
Member QgsComposerItem::sizeChangedByRotation (double &width, double &height)
will be removed in QGIS 3.0
Member QgsComposerItem::textWidthMillimeters (const QFont &font, const QString &text) const
use QgsComposerUtils::textWidthMM instead
Member QgsComposerMap::atlasFixedScale () const
since 2.4 Use atlasScalingMode() instead
Member QgsComposerMap::cornerPointOnRotatedAndScaledRect (double &x, double &y, double width, double height) const
Use QgsComposerItem::cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height, double rotation ) instead
Member QgsComposerMap::imageSizeConsideringRotation (double &width, double &height) const
Use bool QgsComposerItem::imageSizeConsideringRotation( double& width, double& height, double rotation ) instead
Member QgsComposerMap::mapRenderer () const
since 2.4 - use mapSettings() - may return 0 if not initialized with QgsMapRenderer
Member QgsComposerMap::overviewExtentChanged ()
use QgsComposerMapOverview::overviewExtentChanged instead
Member QgsComposerMap::rotation () const
Use mapRotation() instead
Member QgsComposerMap::setAtlasFixedScale (bool fixed)
since 2.4 Use setAtlasScalingMode() instead
Member QgsComposerMap::setRotation (double r)
Use setMapRotation( double rotation ) instead
Member QgsComposerMap::sizeChangedByRotation (double &width, double &height)
Use QgsComposerItem::sizeChangedByRotation( double& width, double& height, double rotation ) instead
Member QgsComposerPicture::cornerPointOnRotatedAndScaledRect (double &x, double &y, double width, double height) const
Use QgsComposerItem::cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height, double rotation ) instead
Member QgsComposerPicture::imageSizeConsideringRotation (double &width, double &height) const
Use bool QgsComposerItem::imageSizeConsideringRotation( double& width, double& height, double rotation ) instead
Member QgsComposerPicture::pictureExpression () const
use QgsComposerObject::dataDefinedProperty( QgsComposerObject::PictureSource ) instead
Member QgsComposerPicture::pictureFile () const
use picturePath instead
Member QgsComposerPicture::rotation () const
Use pictureRotation() instead
Member QgsComposerPicture::setPictureExpression (QString expression)
use QgsComposerObject::dataDefinedProperty( QgsComposerObject::PictureSource ) instead
Member QgsComposerPicture::setPictureFile (const QString &path)
use setPicturePath instead
Member QgsComposerPicture::setRotation (double r)
Use setPictureRotation( double rotation ) instead
Member QgsComposerPicture::setUsePictureExpression (bool useExpression)
use QgsComposerObject::dataDefinedProperty( QgsComposerObject::PictureSource ) instead
Member QgsComposerPicture::sizeChangedByRotation (double &width, double &height)
Use QgsComposerItem::sizeChangedByRotation( double& width, double& height, double rotation ) instead
Member QgsComposerPicture::updatePictureExpression ()
no longer required
Member QgsComposerPicture::usePictureExpression () const
use QgsComposerObject::dataDefinedProperty( QgsComposerObject::PictureSource ) instead
Member QgsComposition::alignmentSnapTolerance () const
Use snapTolerance instead
Member QgsComposition::mapRenderer ()
since 2.4 - use mapSettings() instead. May return null if not initialized with QgsMapRenderer
Member QgsComposition::pixelFontSize (double pointSize) const
use QgsComposerUtils::pointsToMM instead
Member QgsComposition::pointFontSize (int pixelSize) const
use QgsComposerUtils::mmToPoints instead
Member QgsComposition::QgsComposition (QgsMapRenderer *mapRenderer)
since 2.4 - use the constructor with QgsMapSettings
Member QgsComposition::relativePosition (double position, double beforeMin, double beforeMax, double afterMin, double afterMax)
use QgsComposerUtils::relativePosition instead
Member QgsComposition::relativeResizeRect (QRectF &rectToResize, const QRectF &boundsBefore, const QRectF &boundsAfter)
use QgsComposerUtils::relativeResizeRect instead
Member QgsComposition::setAlignmentSnapTolerance (double t)
Use setSnapTolerance instead
Member QgsComposition::setSnapGridTolerance (double tolerance)
Use setSnapTolerance instead
Member QgsComposition::snapGridTolerance () const
Use snapTolerance instead
Member QgsComposition::sortZList ()
use refreshZList instead
Member QgsDiagram::diagramSize (const QgsAttributes &attributes, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is)
QSizeF diagramSize( const QgsFeature& feature, const QgsRenderContext& c, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is ) should be used instead
Member QgsDiagram::renderDiagram (const QgsAttributes &att, QgsRenderContext &c, const QgsDiagramSettings &s, const QPointF &position)
void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, const QPointF& position ) should be used instead
Member QgsEditorWidgetRegistry::readLegacyConfig (QgsVectorLayer *vl, const QDomElement &layerElem, QgsEditorWidgetConfig &cfg)
Member QgsFeatureRendererV2::startRender (QgsRenderContext &context, const QgsVectorLayer *vlayer)
since 2.4 - not using QgsVectorLayer directly anymore
Member QgsLabelingEngineInterface::init (QgsMapRenderer *mp)=0
since 2.4 - use override with QgsMapSettings
Member QgsLabelingEngineInterface::labelsAtPosition (const QgsPoint &p)=0
since 2.4 - use takeResults() and methods of QgsLabelingResults
Member QgsLabelingEngineInterface::labelsWithinRect (const QgsRectangle &r)=0
since 2.4 - use takeResults() and methods of QgsLabelingResults
Member QgsLegendModel::setLayerSetAndGroups (const QStringList &layerIds, const QList< GroupLayerInfo > &groupInfo)
in 2.6
Member QgsMapCanvas::canvasPaintDevice ()
since 2.4
Class QgsMapCanvas::CanvasProperties
to be deleted, stuff from here should be moved elsewhere
Member QgsMapCanvas::clear ()
since 2.4 - use refresh() - clear does the same thing
Member QgsMapCanvas::isDirty () const
since 2.4 - dirty flag is not kept anymore - always returns false
Member QgsMapCanvas::map ()
since 2.4 - there could be more than just one "map" items
Member QgsMapCanvas::mapRenderer ()
since 2.4 - use mapSettings() for anything related to current renderer settings / SIP: removed /Transfer/ because it crashes after few calls to iface.mapCanvas().mapRenderer().hasCrsTransformEnabled() / and in fact there is no transfer of ownership from c++ to python! / Actually the problem comes from the fact that "hasCrsTransformEnabled" is both a signal and a normal method / /KeepReference/ is necessary because otherwise mapRenderer().hasCrsTransformEnabled() was crashing
Member QgsMapCanvas::setDirty (bool _dirty)
since 2.4 - use refresh() to trigger a refresh (clients should not decide explicitly whether canvas is dirty or not)
Member QgsMapCanvas::setProgress (int, int)
since 2.4 - already unused in 2.0 anyway
Member QgsMapCanvas::showError (QgsMapLayer *mapLayer)
since 2.4 - does nothing - errors are reported by different means
Member QgsMapCanvas::updateFullExtent ()
since v2.4 - does nothing
Member QgsMapCanvas::updateMap ()
in 2.4 - does nothing - kept for API compatibility
Member QgsMapCanvas::useImageToRender (bool theFlag)
since 2.4 - does nothing because now we always render to QImage
Member QgsMapCanvasItem::setPanningOffset (const QPoint &point)
since v2.4 - not called by QgsMapCanvas anymore
Member QgsMapCanvasMap::enableAntiAliasing (bool flag)
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapCanvasMap::paintDevice ()
in 2.4
Member QgsMapCanvasMap::refresh ()
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapCanvasMap::render ()
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapCanvasMap::resize (QSize size)
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapCanvasMap::setBackgroundColor (const QColor &color)
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapCanvasMap::setPanningOffset (const QPoint &point)
in 2.4 - not called by QgsMapCanvas anymore
Member QgsMapCanvasMap::updateContents ()
in 2.4 - does nothing. Kept for API compatibility
Member QgsMapLayer::cacheImage ()
since 2.4 - returns NULL
Member QgsMapLayer::clearCacheImage ()
in 2.4 - caches listen to repaintRequested() signal to invalidate the cached image
Member QgsMapLayer::drawingProgress (int theProgress, int theTotalSteps)
in 2.4 - not emitted anymore
Member QgsMapLayer::lastError ()
since 2.4 - returns empty string
Member QgsMapLayer::lastErrorTitle ()
since 2.4 - returns empty string
Member QgsMapLayer::onCacheImageDelete ()
since 2.4 - does nothing
Member QgsMapLayer::setCacheImage (QImage *)
since 2.4 - caches listen to repaintRequested() signal to invalidate the cached image
Member QgsMapLayerRegistry::clearAllLayerCaches ()
since 2.4 - does nothing
Member QgsMapRenderer::drawingProgress (int current, int total)
in 2.4 - not emitted anymore
Member QgsMapRenderer::hasCrsTransformEnabled (bool flag)
Use hasCrsTransformEnabledChanged( bool flag ) to avoid conflict with method of the same name).
Member QgsMapRenderer::onDrawingProgress (int current, int total)
in 2.4 - does nothing
Member QgsMapRenderer::updateMap ()
in 2.4 - not emitted anymore
Member QgsMapTool::renderComplete ()
since 2.4 - not called anymore - map tools must not directly depend on rendering progress
Member QgsPalLabeling::init (QgsMapRenderer *mr)
since 2.4 - use override with QgsMapSettings
Member QgsPalLabeling::isStoredWithProject () const
since 2.4 - settings are always stored in project
Member QgsPalLabeling::labelsAtPosition (const QgsPoint &p)
since 2.4 - use takeResults() and methods of QgsLabelingResults
Member QgsPalLabeling::labelsWithinRect (const QgsRectangle &r)
since 2.4 - use takeResults() and methods of QgsLabelingResults
Member QgsPalLabeling::setStoredWithProject (bool store)
since 2.4 - settings are always stored in project
Member QgsPointDisplacementRenderer::setDisplacementGroups (const QList< QMap< QgsFeatureId, QgsFeature > > &list)
since 2.4
Member QgsRasterLayer::updateProgress (int, int)
in 2.4 - does nothing
Member QgsRenderChecker::setMapRenderer (QgsMapRenderer *thepMapRenderer)
since 2.4 - use setMapSettings()
Member QgsRubberBand::QgsRubberBand (QgsMapCanvas *mapCanvas, bool isPolygon)
Use the constructor which takes QGis::GeometryType as second argument instead
Parameters
mapCanvasThe map canvas to draw onto. It's CRS will be used map points onto screen coordinates.
isPolygontrue: draw as (multi-)polygon, false draw as (multi-)linestring
Member QgsRubberBand::reset (bool isPolygon)
Use the reset method which takes QGis::GeometryType as second argument instead Clears all the geometries in this rubberband. Sets the representation type according to isPolygon.
Parameters
isPolygontrue: draw as (multi-)polygon, false draw as (multi-)linestring
Member QgsSymbolLayerV2Utils::wellKnownMarkerFromSld (QDomElement &element, QString &name, QColor &color, QColor &borderColor, double &borderWidth, double &size)
Use wellKnownMarkerFromSld( QDomElement &element, QString &name, QColor &color, QColor &borderColor, Qt::PenStyle &borderStyle, double &borderWidth, double &size ) instead
Member QgsSymbolLayerV2Utils::wellKnownMarkerToSld (QDomDocument &doc, QDomElement &element, QString name, QColor color, QColor borderColor=QColor(), double borderWidth=-1, double size=-1)
Use wellKnownMarkerToSld( QDomDocument &doc, QDomElement &element, QString name, QColor color, QColor borderColor, Qt::PenStyle borderStyle, double borderWidth, double size ) instead
Member QgsTolerance::defaultTolerance (QgsMapLayer *layer, QgsMapRenderer *renderer)
since 2.4 - use override with QgsMapSettings
Member QgsTolerance::toleranceInMapUnits (double tolerance, QgsMapLayer *layer, QgsMapRenderer *renderer, UnitType units=MapUnits)
since 2.4 - use the override with QgsMapSettings
Member QgsTolerance::vertexSearchRadius (QgsMapLayer *layer, QgsMapRenderer *renderer)
since 2.4 - use override with QgsMapSettings
Member QgsVectorFileWriter::driverMetadata (QString driverName, QString &longName, QString &trLongName, QString &glob, QString &ext)
Member QgsVectorLayer::changeAttributeValue (QgsFeatureId fid, int field, QVariant value, bool emitSignal)
The emitSignal parameter is obsolete and not considered at the moment. It will be removed in future releases. Remove it to be prepared for the future. (Since 2.1)
Member QgsVectorLayer::dateFormat (int idx)
Use
See also
{setEditorWdigetV2Config} instead
Member QgsVectorLayer::editType (int idx)
Use
See also
{editorWidgetV2} instead
Member QgsVectorLayer::EditType
Use the editorWidgetV2() system instead
Member QgsVectorLayer::range (int idx)
Use
See also
{editorWidgetV2Config} instead
Member QgsVectorLayer::removePolygonIntersections (QgsGeometry *geom, QgsFeatureIds ignoreFeatures=QgsFeatureIds())
since 2.2 - not being used for "avoid intersections" functionality anymore
Member QgsVectorLayer::setCheckedState (int idx, QString checked, QString notChecked)
Use
See also
{setEditorWidgetV2Config} instead
Member QgsVectorLayer::setEditType (int idx, EditType edit)
Use
See also
{setEditorWidgetV2} instead
Member QgsVectorLayer::valueMap (int idx)
Use
See also
{editorWidgetV2Config} instead
Member QgsVectorLayer::widgetSize (int idx)
Use
See also
{setEditorWdigetV2Config} instead