A film-forming composition containing a polymer obtained by polymerizing (A) 5 to 80 mass % of a silicone resin having an R3SiO1/2 unit, an R2R′SiO1/2 unit, and an SiO2 unit, where R may be the same or different and represents a monovalent hydrocarbon group having 1 to 6 carbon atoms, and R′ represents a —C3H6SH group, wherein a total amount of the R3SiO1/2 unit, R2R′SiO1/2 unit, and SiO2 unit is 80 mol % or more with respect to all structural units, and a mole ratio expressed by (sum of R3SiO1/2 unit and R2R′SiO1/2 unit)/(SiO2 unit) ranges from 0.5 to 1.5 and (B) 20 to 95 mass % of one or more radically polymerizable compounds, wherein component (B) includes (B-1) one or more radically polymerizable monomers having no SiO unit in a structure thereof. This composition is capable of forming a transparent film that is excellent in adhesiveness without exhibiting stickiness and secondary adhesion.