November 7, 2011

Adi Adi
Lab Rat
206 posts

How to avoid user from entering special characters into QTableWidget Cell

 

Hi All

How to avoid user from entering special characters into QTableWidget Cell?

2 replies

November 7, 2011

Andre Andre
Area 51 Engineer
6031 posts

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.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

November 7, 2011

KA51O KA51O
Robot Herder
380 posts

isn’t that just like this [developer.qt.nokia.com] ?

 
  ‹‹ Replace Widget in Layout      How to read the version details programatically. ››

You must log in to post a reply. Not a member yet? Register here!