It doesn't have to be a square, it can be a line that has some width.
sf:Shape mana = sf::Shape::Line(start, end, width, color, outline, blah, blah);
where start and end are two sf::Vector2f that say where you start and end the line you are drawing.
Check the documentation, there are a few other options.