Hi and welcome to devnet,
The logic is the following:
You create your widget in createEditor You get the data from that widget in setModelData, it's the first parameter of the function. You just have to cast it to the right type using qobject_castHope it helps