Quote Originally Posted by georgep View Post
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...
Because it's nothing related to the model. You need to provide your own delegate - subclass one of the existing classes and reimplement QAbstractItemDelegate::createEditor() to return a spinbox for the appropriate column or datatype.


Because im very new to Qt, and not very experienced in cpp either so there is a significant chance i would write something stupid.
So please restrain yourself from such statements. It's either writing examples at the wiki or answering questions here. The time and will of people willing to help is limited -- don't reduce their motivation even more, please.