China was an advanced state that had been politically unified for a long time. India had advanced states, but was subdivided into many polities. Africa lacked advanced states and was mostly organized at the chiefdom or tribal levels.
Therefore, the Europeans found it easy to expand into India and Africa. They only needed to make deals with local powers, assume control, and then expand later. In China though, Europeans needed to always negotiate with the Chinese central government which understood exactly what Europe really wanted and blunted their demands/ambitions wherever possible.
I think Europe would only be able to partition China if China had already broken down into various warlord states as it had done for periods throughout history. That would allow the Europeans to divide and conquer.
Here is an option. The White Lotus Rebellion of 1794-1804 was more successful. Central authority broke down, and China becomes de facto divided into warlord states for the next several decades. Europeans begin to establishes free ports and semi-protectorates in the 1840s and 1850s. However, outright annexations and true protectorates begin to happen starting in the late 1870s.
Europe (and Japan) can probably get a lot of the coast by the early 1900s. Russia likely occupies Manchuria. Britain may add Tibet to the Raj. There are various other polities along the coast - Britain may get the Canton area; Germany Shandong, France a greater Indo-China, Japan the bits it obtained int he first Sino-Japanese War plus North China.
However, as the barbarians divide up China, I think it will provoke a backlash and the rest of China in the interior will centralize and modernize perhaps with a capital at Wuhan.