Gear shifting belonging to a wheel hub with a quick-lock function, wherein the hub (1) comprises a gear supported around a shaft (2) having a first end (2a) and a second end (2b) , wherein the second end (2b) of said shaft (2) is adapted to be suspended in relation to a suspension device (4) on a vehicle, and wherein the rapid locking function comprises a rod (10) running in a cylindrical hole that is concentric inside the tree (2) and with it, and a catch that blocks the wheel and the tree (2) in the suspension device (4), where the gearshift comprises the tree (2) , the rod (10) and a control, wherein: - said rod (10) has a neutral position in relation to the tree (2), - a movement from the neutral position of the rod (10), in relation to the tree ( 2), from the first end (2a) of the tree to the second end (2b) of the tree disconnects the blockage , making it possible for the wheel together with the shaft (2) to be locked and released from the suspension device (4), respectively, characterized in that - the rod (10) is provided with means (12) that make contact with a selector (3) gear travel, - a movement relative to the shaft (2) of the rod (10) in an axial direction from the neutral position in a direction out of the second end (2b) of the shaft towards the first end (2a) of the shaft causes, through the means (12), that the gear selector (3) in the gear changes the gear position, so that the transmission ratio of the wheel is modified relative to a device drive (9) for the wheel.Cambio de marchas perteneciente a un cubo de una rueda con una función de bloqueo rápido, en donde el cubo (1) comprende un engranaje soportado alrededor de un árbol (2) que tiene un primer extremo (2a) y un segundo extremo (2b), en donde el segundo extremo (2b) de dicho árbol (2) está adaptado para suspenderse con relación a un dispositivo de suspensión (4) sobre un vehículo, y en donde la función de bloqueo rápido comprende una varilla (10) que corre en un agujero cilíndrico que es c