A mounting device, for mounting solar panels to a structure, the mounting device comprising: - a fastening device comprising a fastening element, for fastening the mounting device to the structure, and a first engagement surface, for engaging an underside of a solar panel frame, - a clamping device comprising a ledge with a second engagement surface facing the first engagement surface, for clamping the solar panel frame between the first and second engagement surfaces (42, 52), the fastening device comprises a clamping guide protrusion arranged perpendicular to the first engagement surface, wherein the clamping device is slidably arranged on the clamping guide protrusion such that it is slidable perpendicularly to the first engagement surface, and the mounting device comprises: - a lever lock pin attached with a rotatable attachment to the clamping guide protrusion, the lever lock pin being rotatable between an open position and a closed position, wherein the lever lock pin is arranged to push the clamping device towards the fastening device in the closed position so that the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), - a slide prevention part arranged at the first engagement surface, the slide prevention part comprising a first protruding element arranged to engage in the underside of the solar panel frame to prevent it from sliding when the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), and characterized in that the fastening device comprises an opening in the first engagement surface and the slide prevention part comprises a second protruding element on an opposite side of the first protruding element, and wherein the slide prevention part is pushed down by the solar panel frame when it is clamped between the first and the second engagement surfaces (42, 52) such that the second protruding element engages the structure under the fastening device through the opening. - a fastening device comprising a fastening element, for fastening the mounting device to the structure, and a first engagement surface, for engaging an underside of a solar panel frame, - a clamping device comprising a ledge with a second engagement surface facing the first engagement surface, for clamping the solar panel frame between the first and second engagement surfaces (42, 52), the fastening device comprises a clamping guide protrusion arranged perpendicular to the first engagement surface, wherein the clamping device is slidably arranged on the clamping guide protrusion such that it is slidable perpendicularly to the first engagement surface, and the mounting device comprises: - a lever lock pin attached with a rotatable attachment to the clamping guide protrusion, the lever lock pin being rotatable between an open position and a closed position, wherein the lever lock pin is arranged to push the clamping device towards the fastening device in the closed position so that the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), - a slide prevention part arranged at the first engagement surface, the slide prevention part comprising a first protruding element arranged to engage in the underside of the solar panel frame to prevent it from sliding when the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), and - a lever lock pin attached with a rotatable attachment to the clamping guide protrusion, the lever lock pin being rotatable between an open position and a closed position, wherein the lever lock pin is arranged to push the clamping device towards the fastening device in the closed position so that the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), - a slide prevention part arranged at the first engagement surface, the slide prevention part comprising a first protruding element arranged to engage in the underside of the solar panel frame to prevent it from sliding when the solar panel frame is clamped between the first and the second engagement surfaces (42, 52), and