I have four shapefiles. Each contains a linestring as shown in the image. Each shapefile is represented as its own layer in QGIS.

I would like to union these linestrings into one polygon which describes the outline of all four shapes as shown in the following image I produced with Gimp. I could not dissolve the parts since they are spread on four layers.

I uploaded the shapefiles for you to try yourself. The archive contains the four separate shapes as well as the merged geometries (Pfinztal-Merged-4326.zip) I produced.
xxxcolumn to each shapefile. All rows in this column have the same value for one shapefile. The values are1,2,3,4for all shapefiles. I successfully merged the shapefiles using MMQGIS. The merged shapefile took over the different values assigned before. When I dissolve by thexxxcolumn all inner lines stay. What am I doing wrong? – JJD Feb 07 '15 at 17:14