Gone are the days of exporting to external software. Click the new button (found in the View menu or toolbar). Draw a line on your map, and QGIS instantly generates an elevation graph using raster DEMs or vector contour layers.