Quote Originally Posted by wysota View Post
It returns a variant. The default delegate interprets it as a string later on. So you can return an int from this role and it will be displayed as a textual representation of the integer.



I don't understand the problem. What is it exactly that you don't know?

it might be simple, but I dont understand how to get the spinbox delegate in the datetime column of the database (and not in others)[see pic]. I searched for the code in
src\sql\models\qsqltablemodel.cpp but couldnt manage to find anything...


Quote Originally Posted by wysota View Post
Hmm... why don't you do it?
Because im very new to Qt, and not very experienced in cpp either so there is a significant chance i would write something stupid.