It's not a really good idea on an everyday car, due to the added weight and disproportionnate cost.
Let's take an example of the most meaningful example we can find where it would add minimal cost/weight/aero:
A reasonnable everyday electric car : Tesla Model 3
It has 1,4m² of shaded roof glass already, ideal to replace the shading by printed on solar panels.
Printed on solar panels are crappy, but don't add weight.
You get 14% efficiency, 3.5 kWh/day of sunlight (sunny, parked with no shade) -> 0.686 kWh of electricity/sunny day
That's 4.7km of travel....
Now you get only 20% of the full sunny days in average on a year because of many factors (weather, shade, parking, etcetc...).
In average on a year, you get 1km/day.
That's nothing. With a roof solar PV panels 20m², you get 100x more, and you can cover all of your commutes, with power to spare in the summer, for a tenth of the cost/km....
'Seriously guys, the right place for solar panels in everyday use is on the roof, nowhere else.