PDA

View Full Version : QTableWidget and creating my own editor



macias
13th June 2007, 10:39
Hello,

I know how to create my own editor in Qt3 but I can't figure it out in Qt4. I see no method in Qtablewidget and Qtablewidgetitem responsible for creating editor for given cell, except for openpersisteneditor, however this method is not virtual so even I write my own, it is never called.

So, how to create my own editor for cells in QTableWidget? Thank you in advance.

bye

wysota
13th June 2007, 11:02
In Qt4 the delegate is responsible for creating editors. So if you want a custom editor, you have to either register it with the existing (standard) delegate or provide your own delegate subclass.