Selecting connected lines between start and end point in QGIS?
The best solution that I can think of is to calculate the shortest path between two points using the Road Graph plugin.
You can find a full example of the usage of the plugin here 7.3. Lesson: Network Analysis - QGIS