PDA

View Full Version : QTableView and Date



giusepped
5th November 2008, 08: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, 09:09
see QItemDelegate

giusepped
5th November 2008, 09: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, 09:22
an example of using delegates (http://doc.trolltech.com/4.4/itemviews-spinboxdelegate.html)

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

spirit
5th November 2008, 13: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. ;)