Solar panels on car is a good idea that sounds like a bad idea that sounds like a good idea.
It sounds like a good idea because if you can get your power from the sun you don't need to change.
It sounds like a bad idea because the charging rate is incredibly slow, especially compared to the rate a car can use energy. Solar power wouldn't noticeably increase the range, except for a very special-purpose non-street-legal vehicle.
However, it's actually a good idea because many people don't drive all that far in a given day. If you drive five miles to work, park in the sun, then drive back home, you might recover a pretty big chunk of that and not have to plug in quite as often or maybe not at all. The analysis is similar if you bike or take public transit to work and usually only go on medium-distance drives on the weekends.