Click on the Vector Line tool in the Vector tools box.
Drag the pointer till the line is the required length and then release the mouse.
The line will be given the color of the current background color.
You can read about how to edit vector objects in Vector objects: Modifying.
See also: