So there is really two parts to this question.
While watching an episode about Chinese junk ships, my father and I started discussing what happened to the Chinese when they seemed to have been the technological superpower early on. Recalling that the ships were still used during the opium wars with the British we wondered if the British stole many of the Chinese technologies. So the first question is what happened to the Chinese when they seemed so far ahead of everyone else?
This turned into a discussion about Churchill apparently offering technological secrets to America if they agreed to help with the war. Is this true? If so, what secret technology did America receive?
Part II
Why China lost its lead in technology is a problem that vexes many historians. This web-site will get you started on the reasons. The TL/DR answer is the Ming Dynasty was rather conservative and it rested on its laurels. It thought its products were better than European products and was willing to accept European silver in return for products that the Europeans wanted. like silk, tea and ceramics.
http://anexerciseinfutility.blogspot.com/2013/03/why-did-china-fall-behind.html
By 1841, during the Opium Wars, the Royal Navy was so far ahead of the Chinese in Naval technology, it did not steal anything from China. The British had wooden ships with lanteen sails, stern post rudders and powerful cannons that could blow any Chinese junk out of the water. The Royal Navy had honed its fighting skills for some two hundred and fifty years, fighting the Spanish, Dutch and French in a dozen different wars. By 1841, the Royal Navy was the strongest navy in the world.
Sources: "Winged Victory: The US Army Air Force in World War II" by Geoffrey Perret
"Engage the Enemy more Closely: The Royal Navy in the Second World War" by Correlli Barnett
"The Rise and Fall of the Great Powers" by Paul Kennedy
"The Rise and Fall of British Naval Mastery" by Paul Kennedy