Vector Layer Properties

This dialog allows you to work with vector layer settings and properties. There are seven tabs:

Symbology
Labels
Attributes
General
Metadata
Actions
Diagram Overlay

Symbology

To change the symbology for a layer, simply double click on its legend entry and the vector dialog will be shown.

Within this dialog you can style your vector layer. Depending on the selected rendering option you have the possibility to also classify your map features.

Legend type
QGIS supports a number of symbology renderers to control how vector features are displayed. Currently the following renderers are available:
New symbology
Click button to use new symbology implementation for the layer.
Vector transparency
QGIS allows to set a transparency for every vector layer. This can be done with the slider . This is very useful for overlaying several vector layers.
Saving styles
Once you have styled your layer you also could save your layer-style to a separate file (with *.qml ending). To do this, use the button . No need to say that loads your saved layer-style-file.
If you wish to always use a particular style whenever the layer is loaded, use the button to make your style the default. Also, if you make changes to the style that you are not happy with, use the button to revert to your default style.

Labels

The Labels tab allows you to enable labeling features and control a number of options related to fonts, placement, style, alignment and buffering.
Check the check box to enable labeling.
Basic Label options
Choose the field to label with.

Select the use the and buttons to set the font and color. You can also change the angle and the placement of the text-label.

If have labels extending over several lines, check . QGIS will check for a true line return in your label field and insert the line breaks accordingly. A true line return is a single character \n, (not two separate characters, like a backlash \ followed by the character n).

Placement
Change the label placement by selecting one of the radio buttons in the group.
Font size units
The allows you to select between or .
Buffer labels
To buffer the labels means putting a backdrop around them to make them stand out better. To buffer the lakes labels:
  1. Click the check box to enable buffering.
  2. Choose a size for the buffer using the spin box.
  3. Choose a color by clicking on and choosing your favorite from the color selector. You can also set some transparency for the buffer if you prefer.
  4. Click to see if you like the changes.
Notice you can also specify the buffer size in map units if that works out better for you.
Data defined placement, properties, buffer, position
The remaining entries inside the tab allow you control the appearance of the labels using attributes stored in the layer. The entries beginning with allow you to set all the parameters for the labels using fields in the layer.

Attributes

Within the tab the attributes of the selected data set can be manipulated. The buttons and can be used, when the data set is in editing mode. The OGR library supports to add new columns, but not to remove them, if you have a GDAL version >= 1.6 installed. Otherwise only columns from PostGIS layers can be edited.

The button toggles this mode.

Within the Attributes tab you also find an edit widget column. This column can be used to define values or a range of values that are allowed to be added to the specific attribute table column. If you click on the button, a dialog opens, where you can define different widgets. These widgets are:

General

The General tab allows you to change the display name, set scale dependent rendering options, create a spatial index of the vector file (only for OGR supported formats and PostGIS) and view or change the projection of the specific vector layer.

You can also set filter expressions using the .

Subset
The button allows you to limit the features of a layer to a subset matching an expression.

Metadata

The tab contains information about the layer, including specifics about the type and location, number of features, feature type, and the editing capabilities. The Layer Spatial Reference System section, providing projection information, is displayed on this tab. This is a quick way to get information about the layer.

Actions

QGIS provides the ability to perform an action based on the attributes of a feature. This can be used to perform any number of actions, for example, running a program with arguments built from the attributes of a feature or passing parameters to a web reporting tool.
Actions are useful when you frequently want to run an external application or view a web page based on one or more values in your vector layer. An example is performing a search based on an attribute value.

See the User Guide for further information.

Using Actions
Actions can be invoked from the dialog.

Diagram Overlay

The Diagram tab allows you to add a graphic overlay to a vector layer. To activate this feature, open the and select the plugin. After this, there is a new tab in the vector dialog where the settings for diagrams may be entered.

The current implementation of diagrams provides support for pie- and bar charts and for linear scaling of the diagram size according to a classification attribute.