How to avoid user from entering special characters into QTableWidget Cell
General and Desktop
3
Posts
3
Posters
2.6k
Views
1
Watching
-
wrote on 7 Nov 2011, 10:42 last edited by
Hi All
How to avoid user from entering special characters into QTableWidget Cell?
-
wrote on 7 Nov 2011, 11:08 last edited by
Get control over the editor widget that is used, and you can determine for yourself which characters are accepted. One way is to create your own QAbstractItemDelegate subclass, another is to use QItemEditorFactory and set the factory to use on an existing delegate. You can create your own line edit class with all the input filters you need.
-
wrote on 7 Nov 2011, 12:04 last edited by
isn't that just like "this":http://developer.qt.nokia.com/forums/viewthread/10858/ ?
1/3