PDA

View Full Version : QTableView and Date



giusepped
5th November 2008, 09:53
Sorry for the simple question, but I cannot find an answer.
How can I force the input of a cell of QQTableView to be of type Qt:TextData?
G

spirit
5th November 2008, 10:09
see QItemDelegate

giusepped
5th November 2008, 10:20
Thank you, but I cannot understand.
May you give some hint how to iser the QItemDelegate inside the cell?
G

spirit
5th November 2008, 10:22
an example of using delegates (http://doc.trolltech.com/4.4/itemviews-spinboxdelegate.html)

giusepped
5th November 2008, 13:15
but for simple delegate, like QDate, there are not default delegates?
G

spirit
5th November 2008, 14:31
you have to write your own delegate. you can write it using the example which I specified in the last post. don't be afraid, try to write by yourself and read the documentation, it's not to hard. ;)