Device suitable for attaching solar panels onto a roof framework defining a roof surface, said device including: - at least two parallel longitudinal rails each comprising a lower end and an upper end, each longitudinal rail including at least one bearing wing (24a, 24b) having an upper face (241a, 241b) suitable for being substantially parallel with the roof surface and suitable for receiving bearing of a longitudinal edge of a solar panel, each longitudinal rail also including a support wing (26a, 26b) arranged below the first bearing surface and wherein an upper face (261a, 261b) defines a support surface, each longitudinal rail also comprising two flanks (32a, 32b) extending along the longitudinal rail in a perpendicular plane to the bearing wing of the longitudinal rail and beyond the bearing wing of the longitudinal rail, the flank of the longitudinal rail being suitable for restricting a panel in movement in the transversal direction, - at least one transversal rail extending between two longitudinal rails and perpendicularly to said longitudinal rails, the transversal rail having at least one bearing wing (28a, 28b) including an upper face (281a, 281b) and suitable for receiving bearing of a transversal edge of a solar panel, and a lower face (282a, 282b) comprising two ends, each end of the lower face (282a, 282b) of the bearing wing of the transversal rail being suitable for bearing on the upper face (261a, 261b) of the support wing (26a, 26b) of a longitudinal rail, the transversal rail also comprising two flanks (34a, 34b) extending along the transversal rail in a perpendicular plane to the bearing wing of the transversal rail and beyond the bearing wing of the transversal rail, the flanks of the transversal rail being suitable for restricting a panel in movement in the longitudinal direction, - a securing means suitable for engaging with the flanks of a longitudinal rail to block the panel in the transversal direction and in a direction perpendicular to a principal plane of the panel and/or to engage with the flanks of the transversal rail to block the panel in the longitudinal direction and in the direction perpendicular to the principal plane of the panel - a sealing means arranged between the securing means and the upper faces of the solar panels, characterised in that said sealing means is a seal for each longitudinal rail and for each transversal rail, each seal being deformable in cross-section between an initial substantially planar position and a use position wherein it has a substantially U shape, with upper edges (40a, 40b) coming into contact with the upper faces of two adjacent panels, the upper edges and including an addition of material, the seal being produced with a removal of material below the lower end of the U-shaped bend. - at least two parallel longitudinal rails each comprising a lower end and an upper end, each longitudinal rail including at least one bearing wing (24a, 24b) having an upper face (241a, 241b) suitable for being substantially parallel with the roof surface and suitable for receiving bearing of a longitudinal edge of a solar panel, each longitudinal rail also including a support wing (26a, 26b) arranged below the first bearing surface and wherein an upper face (261a, 261b) defines a support surface, each longitudinal rail also comprising two flanks (32a, 32b) extending along the longitudinal rail in a perpendicular plane to the bearing wing of the longitudinal rail and beyond the bearing wing of the longitudinal rail, the flank of the longitudinal rail being suitable for restricting a panel in movement in the transversal direction, - at least one transversal rail extending between two longitudinal rails and perpendicularly to said longitudinal rails, the transversal rail having at least one bearing wing (28a, 28b) including an upper face (281a, 281b) and suitable for receiving bearing of a transversal edge of a solar panel, and a lower face (282a, 282b) comprising two ends, each end of the lower face (282a, 282b) of the bearing wing of the transversal rail being suitable for bearing on the upper face (261a, 261b) of the support wing (26a, 26b) of a longitudinal rail, the transversal rail also comprising two flanks (34a, 34b) extending along the transversal rail in a perpendicular plane to the bearing wing of the transversal rail and beyond the bearing wing of the transversal rail, the flanks of the transversal rail being suitable for restricting a panel in movement in the longitudinal direction, - a securing means suitable for engaging with the flanks of a longitudinal rail to block the panel in the transversal direction and in a direction perpendicular to a principal plane of the panel and/or to engage with the flanks of the transversal rail to block the panel in the longitudinal direction and in the direction perpendicular to the principal plane of the panel - a sealing means arranged between the securing means and the upper faces of the solar panels, characterised in that said sealing means is a seal for each longitudinal rail and for each transversal rail, each seal being deformable in cross-section between an initial substantially planar position and a use position wherein it has a substantially U shape, with upper edges (40a, 40b) coming into contact with the upper faces of two adjacent panels, the upper edges and including an addition of material, the seal being produced with a removal of material below the lower end of the U-shaped bend.