Skip to content

Commit ec2f5c9

Browse files
committedApr 12, 2013
Adding code example to QgsVectorLayer documentation
1 parent 6bc3749 commit ec2f5c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/core/qgsvectorlayer.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ struct CORE_EXPORT QgsVectorJoinInfo
153153
* The QgsVectorLayer provides a common interface to the different data types. It also
154154
* manages editing transactions.
155155
*
156+
* Sample usage of the QgsVectorLayer class:
157+
*
158+
* \code
159+
* QString uri = "point?crs=epsg:4326&field=id:integer";
160+
* QgsVectorLayer *scratchLayer = new QgsVectorLayer(uri, "Scratch point layer", "memory");
161+
* \endcode
156162
*
157163
* The main data providers supported by QGis are listed below.
158164
*

0 commit comments

Comments
 (0)
Please sign in to comment.